]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
test: Show accuracy comparison only for non-failed tests
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 30 Sep 2018 21:38:33 +0000 (23:38 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sun, 30 Sep 2018 21:38:33 +0000 (23:38 +0200)
print-test-results

index 73c36380bdccc2201a9b70359488abde92821ef4..f58705d17dd7e4fd98ff7b68b2a5e63534c5a923 100755 (executable)
@@ -14,6 +14,7 @@ for i in "$@"; do
 
     result=$(grep 'Average accuracy:' $i || :)
     if [[ "$result" =~ Average\ accuracy:\ ([0-9.]+) ]]; then
+       result+=" >= ${expected_accuracy[$seq]}"
        if [[ $(echo "${BASH_REMATCH[1]} >= ${expected_accuracy[$seq]:-0}"|bc) -eq 1 ]]; then
            status=ok
        else
@@ -22,5 +23,5 @@ for i in "$@"; do
     else
        status=FAILED
     fi
-    echo ! "$seq;$flags;$build;$result >= ${expected_accuracy[$seq]};$status"
+    echo ! "$seq;$flags;$build;$result;$status"
 done | sort | column -t -s";"