aboutsummaryrefslogtreecommitdiffstats
path: root/checker/test.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-06-25 01:51:22 +0200
committerLouis Burda <quent.burda@gmail.com>2021-06-25 01:51:35 +0200
commitc7c6f38c144142563e135eceb5daed492c203a85 (patch)
tree8c041825d524bc44048cd237335bc569c7ff939d /checker/test.sh
parent14bc8a3883663656cd4254567a978002c062992d (diff)
downloadenowars5-service-stldoctor-c7c6f38c144142563e135eceb5daed492c203a85.tar.gz
enowars5-service-stldoctor-c7c6f38c144142563e135eceb5daed492c203a85.zip
fix free() of potentially uninitialized pointer and minor refactors in service
Diffstat (limited to 'checker/test.sh')
-rw-r--r--checker/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/checker/test.sh b/checker/test.sh
index c3df08c..101ae55 100644
--- a/checker/test.sh
+++ b/checker/test.sh
@@ -44,7 +44,7 @@ try() {
python3 src/checker.py -j run -v "$variant" -x 4000 \
--flag ENOTESTFLAG123= --flag_regex 'ENO.*=' -i $taskid \
${@:3} "$cmd" > "$tmpfile"
- res="$(cat $tmpfile | grep -a Result: | tail -n1 | grep -a -o OK)"
+ res="$(cat $tmpfile | grep -a -o 'Result: .*' | tail -n1 | cut -d' ' -f2)"
fi
if [ "$res" != "OK" ]; then
newfile="fails/err-$pid"