diff options
| author | bors <bors@rust-lang.org> | 2018-04-22 08:48:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-04-22 08:48:32 +0000 |
| commit | 0cbd310fa7b94355f5870459049256d2c4c9588b (patch) | |
| tree | 767e826c7194607454e8a0e96fb3a3fd01dbc4dd | |
| parent | 835b8648c6dacd546226ec16e9c48eda60a5364a (diff) | |
| parent | 27d9691d800eb243a29b812ff201d6e03a01d170 (diff) | |
| download | rust-0cbd310fa7b94355f5870459049256d2c4c9588b.tar.gz rust-0cbd310fa7b94355f5870459049256d2c4c9588b.zip | |
Auto merge of #50123 - kennytm:do-not-test-rls-if-build-failed, r=alexcrichton
Do not test RLS/Rustfmt if build failed
| -rw-r--r-- | src/bootstrap/test.rs | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index ca18604e6d1..08bbd68c756 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -241,7 +241,16 @@ impl Step for Rls { let host = self.host; let compiler = builder.compiler(stage, host); - builder.ensure(tool::Rls { compiler, target: self.host, extra_features: Vec::new() }); + let build_result = builder.ensure(tool::Rls { + compiler, + target: self.host, + extra_features: Vec::new(), + }); + if build_result.is_none() { + eprintln!("failed to test rls: could not build"); + return; + } + let mut cargo = tool::prepare_tool_cargo(builder, compiler, host, @@ -286,7 +295,16 @@ impl Step for Rustfmt { let host = self.host; let compiler = builder.compiler(stage, host); - builder.ensure(tool::Rustfmt { compiler, target: self.host, extra_features: Vec::new() }); + let build_result = builder.ensure(tool::Rustfmt { + compiler, + target: self.host, + extra_features: Vec::new(), + }); + if build_result.is_none() { + eprintln!("failed to test rustfmt: could not build"); + return; + } + let mut cargo = tool::prepare_tool_cargo(builder, compiler, host, |
