fate: mask errors while constructing report files
authorClément Bœsch <u@pkh.me>
Fri, 24 Mar 2017 21:28:02 +0000 (22:28 +0100)
committerClément Bœsch <u@pkh.me>
Fri, 24 Mar 2017 21:32:36 +0000 (22:32 +0100)
The first case was forgotten in 89790ba2bfc9d0dc5ad407c5724b6ee616ecde58.

Note: build_only=yes is one of the case where hiding the errors makes
sense.

tests/fate.sh

index 885ea17..bbdc701 100755 (executable)
@@ -86,7 +86,7 @@ report(){
     date=$(date -u +%Y%m%d%H%M%S)
     echo "fate:1:${date}:${slot}:${version}:$1:$2:${branch}:${comment}" >report
     cat ${build}/config.fate >>report
-    cat ${build}/tests/data/fate/*.rep >>report || for i in ${build}/tests/data/fate/*.rep ; do cat "$i" >>report 2>/dev/null; done
+    cat ${build}/tests/data/fate/*.rep >>report 2>/dev/null || for i in ${build}/tests/data/fate/*.rep ; do cat "$i" >>report 2>/dev/null; done
     test -n "$fate_recv" && $tar report *.log | gzip | $fate_recv
 }