Skip to content

Commit 81df5ac

Browse files
committed
compiletest: Add name directive for remote runners
Allow tests to use // ignore-remote to ignore the test when using remote-test-{client,server}. In most situations this would be covered by // ignore-cross-compile but I see no reason that a non-cross compiled remote test runner shouldn't work.
1 parent 9e137bb commit 81df5ac

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/test/ui-fulldeps/compiler-calls.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// ignore-cross-compile
55
// ignore-stage1
6+
// ignore-remote
67

78
#![feature(rustc_private)]
89

src/test/ui-fulldeps/mod_dir_path_canonicalized.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// run-pass
22
// Testing that a librustc_ast can parse modules with canonicalized base path
33
// ignore-cross-compile
4+
// ignore-remote
45

56
#![feature(rustc_private)]
67

src/tools/compiletest/src/header.rs

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ impl Config {
853853
name == util::get_pointer_width(&self.target) || // pointer width
854854
name == self.stage_id.split('-').next().unwrap() || // stage
855855
(self.target != self.host && name == "cross-compile") ||
856+
(self.remote_test_client.is_some() && name == "remote") ||
856857
match self.compare_mode {
857858
Some(CompareMode::Nll) => name == "compare-mode-nll",
858859
Some(CompareMode::Polonius) => name == "compare-mode-polonius",

0 commit comments

Comments
 (0)