@@ -164,7 +164,8 @@ invoke_gauge () {
164164 $target_prog -l \
165165 | grep "^$MATCH" \
166166 | while read -r name; \
167− do bin/bench-exec-one.sh "$name" "${GAUGE_ARGS[@]}"; done
167+ do bin/bench-exec-one.sh "$name" "${GAUGE_ARGS[@]}" || exit 1; done \
168+ || die "Benchmark execution failed."
168169}
169170
170171invoke_tasty_bench () {
@@ -188,7 +189,8 @@ invoke_tasty_bench () {
188189 $target_prog -l $MATCH \
189190 | grep "^All" \
190191 | while read -r name; \
191− do bin/bench-exec-one.sh "$name" "${GAUGE_ARGS[@]}"; done
192+ do bin/bench-exec-one.sh "$name" "${GAUGE_ARGS[@]}" || exit 1; done \
193+ || die "Benchmark execution failed."
192194}
193195
194196run_bench_target () {