Skip to content

Commit f1bbe59

Browse files
committed
tests: skip rustdoc test-builder success path for remote client
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
1 parent 1c1923f commit f1bbe59

File tree

1 file changed

+2
-3
lines changed
  • tests/run-make/rustdoc-test-builder

1 file changed

+2
-3
lines changed

tests/run-make/rustdoc-test-builder/rmake.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
//@ needs-target-std
77

8-
use run_make_support::{bare_rustc, path, rfs, rustc_path, rustdoc};
8+
use run_make_support::{bare_rustc, path, rfs, rustc_path, rustdoc, target};
99

1010
fn main() {
1111
// Test 1: Verify that a non-executable test-builder fails gracefully
@@ -25,8 +25,7 @@ fn main() {
2525

2626
// Some targets (for example wasm) cannot execute doctests directly even with a runner,
2727
// so only exercise the success path when the target can run on the host.
28-
let target = std::env::var("TARGET").expect("TARGET must be set");
29-
if target.contains("wasm") {
28+
if target().contains("wasm") || std::env::var_os("REMOTE_TEST_CLIENT").is_some() {
3029
return;
3130
}
3231

0 commit comments

Comments
 (0)