tests/fate.sh: report different status for different errors
authorTimothy Gu <timothygu99@gmail.com>
Tue, 10 Jun 2014 04:46:37 +0000 (21:46 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jun 2014 03:33:51 +0000 (05:33 +0200)
The order of error codes will be useful in my future fateserver patches.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate.sh

index f3712911ebc12372f0508f2e8d3c0eaafb3038b9..38458c748ca462f3c553ca4b2a672e092ce19549 100755 (executable)
@@ -111,8 +111,8 @@ echo ${version} >version-$slot
 rm -rf "${build}" *.log
 mkdir -p ${build}
 
-configure >configure.log 2>&1 || fail $? "error configuring"
-compile   >compile.log   2>&1 || fail $? "error compiling"
-fate      >test.log      2>&1 || fail $? "error testing"
+configure >configure.log 2>&1 || fail 3 "error configuring"
+compile   >compile.log   2>&1 || fail 2 "error compiling"
+fate      >test.log      2>&1 || fail 1 "error testing"
 report 0 success
 clean