mirror of https://github.com/getdnsapi/getdns.git
Merge pull request #334 from banburybill/develop
Fix capturing exit code of a test.
This commit is contained in:
commit
a9029581bc
|
@ -858,9 +858,10 @@ echo "--------------- Test Output ------------------" | write_result result.$dsc
|
|||
pre
|
||||
|
||||
out "[log] Executing test"
|
||||
|
||||
( ${SHELL} $dsc_test ${TPKG_ARGS} 2>&1 ) | write_result result.$dsc_basename
|
||||
( ${SHELL} $dsc_test ${TPKG_ARGS} 2>&1 ) > result.$dsc_basename.tmp
|
||||
test_result=$?
|
||||
write_result result.$dsc_basename < result.$dsc_basename.tmp
|
||||
rm -f result.$dsc_basename.tmp
|
||||
epoch # would like to run after post, but that is not possible :-(
|
||||
if [ $test_result -ne 0 ]; then
|
||||
err "[warning] Test executed with errors: $test_result."
|
||||
|
|
Loading…
Reference in New Issue