propagate exit code in integration tests in verbose mode (#311)
Motivation: Previously the integration tests ran in verbose mode wouldn't actually fail as we didn't correctly propagate the exit code. Modifications: correctly propagate the exit code Result: integration tests correctly fail in verbose mode too
This commit is contained in:
parent
098239bb27
commit
c9c43b53c1
|
@ -79,6 +79,8 @@ done
|
|||
function run_test() {
|
||||
if $verbose; then
|
||||
"$@" 2>&1 | tee -a "$out"
|
||||
# we need to return the return value of the first command
|
||||
return ${PIPESTATUS[0]}
|
||||
else
|
||||
"$@" >> "$out" 2>&1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue