File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ pub fn run_tests(config: Config) {
379
379
}
380
380
Err ( e) => {
381
381
// We don't know if tests passed or not, but if there was an error
382
- // during testing we don't want to just suceeed (we may not have
382
+ // during testing we don't want to just succeed (we may not have
383
383
// tested something), so fail.
384
384
//
385
385
// This should realistically "never" happen, so don't try to make
Original file line number Diff line number Diff line change @@ -2394,12 +2394,14 @@ impl<'test> TestCx<'test> {
2394
2394
. stdout ( Stdio :: piped ( ) )
2395
2395
. spawn ( )
2396
2396
. expect ( "failed to run `diff`" ) ;
2397
- Command :: new ( "delta" )
2397
+ let status = Command :: new ( "delta" )
2398
+ . arg ( "--paging=never" )
2398
2399
. stdin ( diff_pid. stdout . unwrap ( ) )
2399
2400
. spawn ( )
2400
2401
. expect ( "delta not found" )
2401
2402
. wait ( )
2402
2403
. unwrap ( ) ;
2404
+ assert ! ( status. success( ) ) ;
2403
2405
}
2404
2406
2405
2407
fn get_lines < P : AsRef < Path > > (
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ tidy () {
14
14
--quiet yes \
15
15
" $@ " \
16
16
> /dev/null \
17
- # tidy exits with code 1 if there were any warnings
18
- || [ $? -eq 1 ]
17
+ || [ $? -eq 1 ] # tidy exits with code 1 if there were any warnings
19
18
}
20
19
21
20
find " $indir " -type f -name ' *.html' -print0 \
You can’t perform that action at this time.
0 commit comments