Skip to content

Commit

Permalink
[sanitizer] Fix exit code handling in -e mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jan 22, 2025
1 parent 053c631 commit 947e3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ function print_sanitizer_logs() {

function run_ninja() {
env
/usr/bin/time -o ${ROOT}/time.txt -- ninja "$@"
local ec=$?
local ec=0
/usr/bin/time -o ${ROOT}/time.txt -- ninja "$@" || ec=$?
if [[ "${BUILDBOT_BISECT_MODE:-}" == "1" || ! -v BUILDBOT_BUILDERNAME ]] ; then
print_sanitizer_logs
fi
Expand Down

0 comments on commit 947e3db

Please sign in to comment.