Fix error code failure check in rustdoc test
This commit is contained in:
parent
a80e63f3fa
commit
9876f6bd9c
1 changed files with 1 additions and 2 deletions
|
|
@ -299,7 +299,6 @@ fn run_test(
|
|||
eprint!("{}", self.0);
|
||||
}
|
||||
}
|
||||
|
||||
let out = str::from_utf8(&output.stderr).unwrap();
|
||||
let _bomb = Bomb(&out);
|
||||
match (output.status.success(), compile_fail) {
|
||||
|
|
@ -309,7 +308,7 @@ fn run_test(
|
|||
(true, false) => {}
|
||||
(false, true) => {
|
||||
if !error_codes.is_empty() {
|
||||
error_codes.retain(|err| !out.contains(err));
|
||||
error_codes.retain(|err| !out.contains(&format!("error[{}]: ", err)));
|
||||
|
||||
if !error_codes.is_empty() {
|
||||
return Err(TestFailure::MissingErrorCodes(error_codes));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue