Skip to content

Commit 97b2d4f

Browse files
committed
exit on error
1 parent 1200217 commit 97b2d4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/sycl-linux-benchmark.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ jobs:
242242
ls
243243
export CMPLR_ROOT=$PWD/toolchain
244244
./devops/scripts/benchmarking/benchmark.sh ${{ inputs.cache_results == true && '-s' }}
245-
echo $?
246245
- name: Push compute-benchmarks
247246
if: inputs.cache_results == true && success()
248247
env:

devops/scripts/benchmarking/benchmark.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ process_results() {
147147
cat "$BENCHMARK_ERROR_LOG"
148148
echo ""
149149
fi
150-
[ ! -s "$BENCHMARKING_SLOW_LOG" ] && [ ! -s "$BENCHMARK_ERROR_LOG" ]
150+
if [ -s "$BENCHMARKING_SLOW_LOG" ] || [ -s "$BENCHMARK_ERROR_LOG" ]; then
151+
exit 1
152+
fi
151153
}
152154

153155
cleanup() {

0 commit comments

Comments
 (0)