From f1bbe593d5f9ffe28309c8b2c4a40ed6d1946a0f Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sun, 9 Nov 2025 20:29:42 +0200 Subject: [PATCH] tests: skip rustdoc test-builder success path for remote client Signed-off-by: Osama Abdelkader --- tests/run-make/rustdoc-test-builder/rmake.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/run-make/rustdoc-test-builder/rmake.rs b/tests/run-make/rustdoc-test-builder/rmake.rs index 6e6ff6695f18..d10a3c92cae4 100644 --- a/tests/run-make/rustdoc-test-builder/rmake.rs +++ b/tests/run-make/rustdoc-test-builder/rmake.rs @@ -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; }