Fix bugs
This commit is contained in:
parent
c0eedc0b6a
commit
acd6ce2347
3 changed files with 5 additions and 4 deletions
|
|
@ -379,7 +379,7 @@ pub fn run_tests(config: Config) {
|
|||
}
|
||||
Err(e) => {
|
||||
// We don't know if tests passed or not, but if there was an error
|
||||
// during testing we don't want to just suceeed (we may not have
|
||||
// during testing we don't want to just succeed (we may not have
|
||||
// tested something), so fail.
|
||||
//
|
||||
// This should realistically "never" happen, so don't try to make
|
||||
|
|
|
|||
|
|
@ -2394,12 +2394,14 @@ impl<'test> TestCx<'test> {
|
|||
.stdout(Stdio::piped())
|
||||
.spawn()
|
||||
.expect("failed to run `diff`");
|
||||
Command::new("delta")
|
||||
let status = Command::new("delta")
|
||||
.arg("--paging=never")
|
||||
.stdin(diff_pid.stdout.unwrap())
|
||||
.spawn()
|
||||
.expect("delta not found")
|
||||
.wait()
|
||||
.unwrap();
|
||||
assert!(status.success());
|
||||
}
|
||||
|
||||
fn get_lines<P: AsRef<Path>>(
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ tidy () {
|
|||
--quiet yes \
|
||||
"$@" \
|
||||
>/dev/null \
|
||||
# tidy exits with code 1 if there were any warnings
|
||||
|| [ $? -eq 1 ]
|
||||
|| [ $? -eq 1 ] # tidy exits with code 1 if there were any warnings
|
||||
}
|
||||
|
||||
find "$indir" -type f -name '*.html' -print0 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue