Skip to content

Commit

Permalink
exit on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Sep 19, 2024
1 parent 1200217 commit 97b2d4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/sycl-linux-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ jobs:
ls
export CMPLR_ROOT=$PWD/toolchain
./devops/scripts/benchmarking/benchmark.sh ${{ inputs.cache_results == true && '-s' }}
echo $?
- name: Push compute-benchmarks
if: inputs.cache_results == true && success()
env:
Expand Down
4 changes: 3 additions & 1 deletion devops/scripts/benchmarking/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ process_results() {
cat "$BENCHMARK_ERROR_LOG"
echo ""
fi
[ ! -s "$BENCHMARKING_SLOW_LOG" ] && [ ! -s "$BENCHMARK_ERROR_LOG" ]
if [ -s "$BENCHMARKING_SLOW_LOG" ] || [ -s "$BENCHMARK_ERROR_LOG" ]; then
exit 1
fi
}

cleanup() {
Expand Down

0 comments on commit 97b2d4f

Please sign in to comment.