]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix ci_test_driver error status on non-FreeBSD
authorMartin Matuska <martin@matuska.org>
Thu, 12 Jan 2017 15:55:31 +0000 (16:55 +0100)
committerMartin Matuska <martin@matuska.org>
Thu, 12 Jan 2017 15:55:54 +0000 (16:55 +0100)
build/ci_test_driver

index 5feb950dae1a36d01e784d293c2deaf6122a1168..69a5463c10e8740ecc7d226d46c9668157e70ec2 100755 (executable)
@@ -104,8 +104,8 @@ trap "st=141; $do_exit" 13
 trap "st=143; $do_exit" 15
 
 # Test script is run here.
-"$@" | tee $log_file 2>&1
-estatus=$?
+( "$@"; echo "$?" > $log_file.s ) | tee $log_file 2>&1
+estatus=`cat $log_file.s`
 
 if test $enable_hard_errors = no && test $estatus -eq 99; then
   tweaked_estatus=1