Skip to content

Commit

Permalink
test: e2e_all: run_tests.sh will use number of failed tests as exit c…
Browse files Browse the repository at this point in the history
…ode; run_all.sh will also exit with that exit code
  • Loading branch information
gkc committed Mar 15, 2024
1 parent 55271d3 commit f5d1f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e_all/scripts/common/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@ actuallyExecuted=$(( total - ignored ))
echo -e "### Of a possible $total, ignored $ignored and executed $actuallyExecuted tests" >> "$reportFile"
echo -e "${colour}### Passed: $passed Failed: $failed${NC}" >> "$reportFile"
echo "###########################################################" >> "$reportFile"

exit $failed
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ else
sleep "$daemonStartWait"
logInfo "Calling common/run_tests.sh"
"$testScriptsDir/common/run_tests.sh"
testExitStatus=$?
fi

echo
Expand Down Expand Up @@ -215,3 +216,4 @@ cat "$reportFile"
logInfo ""
logInfo ""

exit $testExitStatus

0 comments on commit f5d1f5e

Please sign in to comment.