tests: skip rustdoc test-builder success path for remote client

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
This commit is contained in:
Osama Abdelkader
2025-11-09 20:29:42 +02:00
parent 1c1923f9e9
commit f1bbe593d5
+2 -3
View File
@@ -5,7 +5,7 @@
//@ needs-target-std
use run_make_support::{bare_rustc, path, rfs, rustc_path, rustdoc};
use run_make_support::{bare_rustc, path, rfs, rustc_path, rustdoc, target};
fn main() {
// Test 1: Verify that a non-executable test-builder fails gracefully
@@ -25,8 +25,7 @@ fn main() {
// Some targets (for example wasm) cannot execute doctests directly even with a runner,
// so only exercise the success path when the target can run on the host.
let target = std::env::var("TARGET").expect("TARGET must be set");
if target.contains("wasm") {
if target().contains("wasm") || std::env::var_os("REMOTE_TEST_CLIENT").is_some() {
return;
}