From ceed8eb89cc50660e68ff2d4f15365698bd9104f Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 16 May 2018 18:17:29 +0200 Subject: Make `bless` a flag instead of a subcommand --- src/bootstrap/test.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/bootstrap/test.rs') diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index ecb463fda28..7a4924f03c8 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -41,8 +41,6 @@ const ADB_TEST_DIR: &str = "/data/tmp/work"; /// The two modes of the test runner; tests or benchmarks. #[derive(Debug, PartialEq, Eq, Hash, Copy, Clone, PartialOrd, Ord)] pub enum TestKind { - /// Run `cargo bless` - Bless, /// Run `cargo test` Test, /// Run `cargo bench` @@ -53,7 +51,6 @@ impl From for TestKind { fn from(kind: Kind) -> Self { match kind { Kind::Test => TestKind::Test, - Kind::Bless => TestKind::Bless, Kind::Bench => TestKind::Bench, _ => panic!("unexpected kind in crate: {:?}", kind) } @@ -64,8 +61,6 @@ impl TestKind { // Return the cargo subcommand for this test kind fn subcommand(self) -> &'static str { match self { - // bless and test are both `test` for folder names and cargo subcommands - TestKind::Bless | TestKind::Test => "test", TestKind::Bench => "bench", } @@ -75,7 +70,6 @@ impl TestKind { impl fmt::Display for TestKind { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(match *self { - TestKind::Bless => "Testing (bless)", TestKind::Test => "Testing", TestKind::Bench => "Benchmarking", }) @@ -967,7 +961,7 @@ impl Step for Compiletest { cmd.arg("--host").arg(&*compiler.host); cmd.arg("--llvm-filecheck").arg(builder.llvm_filecheck(builder.config.build)); - if builder.kind == Kind::Bless { + if builder.config.cmd.bless() { cmd.arg("--bless"); } -- cgit 1.4.1-3-g733a5