summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-04-10 10:36:03 -0700
committerLuca Barbato <lu_zero@gentoo.org>2015-04-20 12:41:34 +0200
commit3b1e35d46dc910cef1d66f6964e6800cae5fc89b (patch)
treeca24cb329ef2611fe81a957b996172f7f5dba552 /tests
parentd34039b171bebe37bf723a1b03e5651267099739 (diff)
fate: Omit the results if the test passed
The FATE server does not report this information anyway and omitting it makes the successful run send much less data. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fate-run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 790a4d1283..a0a69ad0a7 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -211,7 +211,13 @@ else
err=1
fi
-echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile
+if [ $err -eq 0 ]; then
+ unset cmpo erro
+else
+ cmpo="$($base64 <$cmpfile)"
+ erro="$($base64 <$errfile)"
+fi
+echo "${test}:${sig:-$err}:$cmpo:$erro" >$repfile
if test $err != 0 && test $gen != "no" ; then
echo "GEN $ref"