mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
perf-test: propagate non-zero returns from /usr/bin/time
Unlike in the correctness tests, the most common cause of non-zero return seems to be the user interrupting, so killing the run seems like the friendly thing to do.
This commit is contained in:
parent
e7bd40aa4c
commit
e52597016f
1 changed files with 2 additions and 0 deletions
|
@ -51,7 +51,9 @@ time_run () {
|
|||
if test "$verbose" != "t"; then exec 4>test.output 3>&4; fi
|
||||
if ! eval >&3 "/usr/bin/time -f '%e\t%U\t%S\t%M\t%I\t%O' $2" ; then
|
||||
test_failure=$(($test_failure + 1))
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
time_done () {
|
||||
|
|
Loading…
Reference in a new issue