summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-15 15:38:29 +0200
committerDiego Biurrun <diego@biurrun.de>2017-02-27 13:57:35 +0100
commit698ac8f9cabd053f2c19346a77b92f8eae4218fc (patch)
tree6b10e3c18f2f8cc9783328b4ff2804b3198fa420 /tests/fate-run.sh
parentc483398bb7ef66f61ed2dcb09f3d6160683da0eb (diff)
fate: Make null comparison method more useful
This allows dropping /dev/null as reference value when no output is generated.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 43fcee02ab..21111403a6 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -203,7 +203,7 @@ if [ $err -gt 128 ]; then
test "${sig}" = "${sig%[!A-Za-z]*}" || unset sig
fi
-if test -e "$ref" || test $cmp = "oneline" ; then
+if test -e "$ref" || test $cmp = "oneline" || test $cmp = "null" ; then
case $cmp in
diff) diff -u -b "$ref" "$outfile" >$cmpfile ;;
oneoff) oneoff "$ref" "$outfile" >$cmpfile ;;