PAZPAR2_OVERRIDE_TEST=true makes test override .res-files
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 21 Sep 2012 11:48:07 +0000 (13:48 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 21 Sep 2012 11:48:07 +0000 (13:48 +0200)
test/run_pazpar2.sh

index fe58c6a..f62c082 100755 (executable)
@@ -102,7 +102,7 @@ for f in `cat ${srcdir}/${URLS}`; do
        if test ! -f $OUT2; then
            touch $OUT2
        fi
-       if test -f $OUT1; then
+       if test -f $OUT1 -a -z "$PAZPAR2_OVERRIDE_TEST"; then
            if diff $OUT1 $OUT2 >$DIFF; then
                rm $DIFF
            else