@@ -2,9 +2,9 @@
: ${MAX_SMP:=$(getconf _NPROCESSORS_CONF)}
: ${TIMEOUT:=90s}
-PASS() { echo -ne "\e[32mPASS\e[0m"; }
-SKIP() { echo -ne "\e[33mSKIP\e[0m"; }
-FAIL() { echo -ne "\e[31mFAIL\e[0m"; }
+PASS=$'\e[32mPASS\e[0m'
+SKIP=$'\e[33mSKIP\e[0m'
+FAIL=$'\e[31mFAIL\e[0m'
extract_summary()
{
@@ -53,18 +53,18 @@ function run()
fi
if [ -n "$arch" ] && [ "$arch" != "$ARCH" ]; then
- echo "`SKIP` $1 ($arch only)"
+ echo "$SKIP $1 ($arch only)"
return 2
fi
eval $check || {
echo "skipped $testname (\`$check\` returned $?)" | RUNTIME_log_stderr
- echo "`SKIP` $testname (check failed)"
+ echo "$SKIP $testname (check failed)"
return 77
}
last_line=$(premature_failure) && {
- echo "`SKIP` $1 ($last_line)"
+ echo "$SKIP $1 ($last_line)"
return 77
}
@@ -80,13 +80,13 @@ function run()
ret=$?
if [ $ret -eq 0 ]; then
- echo "`PASS` $1 $summary"
+ echo "$PASS $1 $summary"
elif [ $ret -eq 77 ]; then
- echo "`SKIP` $1 $summary"
+ echo "$SKIP $1 $summary"
elif [ $ret -eq 124 ]; then
- echo "`FAIL` $1 (timeout; duration=$timeout)"
+ echo "$FAIL $1 (timeout; duration=$timeout)"
else
- echo "`FAIL` $1 $summary"
+ echo "$FAIL $1 $summary"
fi
return $ret