summaryrefslogtreecommitdiff
path: root/ezbench.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ezbench.sh')
-rwxr-xr-xezbench.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/ezbench.sh b/ezbench.sh
index a3b0e7a..6212b02 100755
--- a/ezbench.sh
+++ b/ezbench.sh
@@ -235,6 +235,7 @@ startTime=`date +%s`
callIfDefined ezbench_pre_hook
# ANSI colors
+c_red='\e[31m'
c_bright_red='\e[1;31m'
c_bright_green='\e[1;32m'
c_bright_yellow='\e[1;33m'
@@ -307,10 +308,16 @@ do
postHookFuncName=${testNames[$t]}_run_post_hook
processHookFuncName=${testNames[$t]}_process
+ unset ERROR
callIfDefined $preHookFuncName
- output=$($runFuncName $rounds $fps_logs 2>$error_logs)
+ output=$($runFuncName $rounds $fps_logs 2>$error_logs || ERROR=1)
callIfDefined $postHookFuncName
+ if [ -n "$ERROR" -o -z "$output" ]; then
+ echo -e "${c_red}failed${c_reset}"
+ continue
+ fi
+
# delete the error file if it is empty
if [ ! -s $error_logs ] ; then
rm $error_logs