1
Fork 0

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.
This commit is contained in:
Tom Eccles 2020-05-28 17:32:12 +01:00
parent 9e137bb8b6
commit 81df5ac241
3 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@
// ignore-cross-compile
// ignore-stage1
// ignore-remote
#![feature(rustc_private)]

View file

@ -1,6 +1,7 @@
// run-pass
// Testing that a librustc_ast can parse modules with canonicalized base path
// ignore-cross-compile
// ignore-remote
#![feature(rustc_private)]

View file

@ -853,6 +853,7 @@ impl Config {
name == util::get_pointer_width(&self.target) || // pointer width
name == self.stage_id.split('-').next().unwrap() || // stage
(self.target != self.host && name == "cross-compile") ||
(self.remote_test_client.is_some() && name == "remote") ||
match self.compare_mode {
Some(CompareMode::Nll) => name == "compare-mode-nll",
Some(CompareMode::Polonius) => name == "compare-mode-polonius",