diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-16 18:17:29 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-17 16:03:59 +0200 |
| commit | ceed8eb89cc50660e68ff2d4f15365698bd9104f (patch) | |
| tree | 88060e3c9ede0503e6eea555559e0a644e8b24a3 /src/bootstrap/test.rs | |
| parent | 37dee69dacb0fc199d52d9baba3a3caf3018958a (diff) | |
| download | rust-ceed8eb89cc50660e68ff2d4f15365698bd9104f.tar.gz rust-ceed8eb89cc50660e68ff2d4f15365698bd9104f.zip | |
Make `bless` a flag instead of a subcommand
Diffstat (limited to 'src/bootstrap/test.rs')
| -rw-r--r-- | src/bootstrap/test.rs | 8 |
1 files changed, 1 insertions, 7 deletions
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<Kind> 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"); } |
