X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fbugs%2Ft-test-with-temp.sh;h=1bebba99fbf21a812b64867eca837edaeb48a153;hb=db5df54124af56dc1dfce71f839d78da2b49e346;hp=520804d69f167acb79a70e4c81bd1fef8508f787;hpb=7f3ac8559f71179a95fad28a30882ca476d8ac99;p=pspp diff --git a/tests/bugs/t-test-with-temp.sh b/tests/bugs/t-test-with-temp.sh index 520804d69f..1bebba99fb 100755 --- a/tests/bugs/t-test-with-temp.sh +++ b/tests/bugs/t-test-with-temp.sh @@ -17,6 +17,7 @@ export STAT_CONFIG_PATH cleanup() { + cd / rm -rf $TEMPDIR } @@ -94,7 +95,8 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" -diff -B -b $TEMPDIR/pspp.list $TEMPDIR/first.list +perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list $TEMPDIR/first.list +diff -b $TEMPDIR/pspp.list $TEMPDIR/first.list if [ $? -ne 0 ] ; then fail ; fi