From: Ben Pfaff Date: Sun, 18 Oct 2009 00:12:58 +0000 (-0700) Subject: Fix tests/command/sample.sh test on Mingw. X-Git-Tag: sid-i386-build93^0 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd44d50713cc51b6ca698fec5b1f90289ec4ba0;p=pspp-builds.git Fix tests/command/sample.sh test on Mingw. On Mingw pspp.list contains CR-LF line ends, so the "grep" command to skip blank lines needs to allow for that. --- diff --git a/tests/command/sample.sh b/tests/command/sample.sh index 0dfd0778..fc856a4a 100755 --- a/tests/command/sample.sh +++ b/tests/command/sample.sh @@ -85,7 +85,7 @@ $SUPERVISOR $PSPP --testing-mode $TEMPDIR/sample.stat if [ $? -ne 0 ] ; then no_result ; fi activity="create head" -grep -v '^\ *$' $TEMPDIR/pspp.list | head -2 > $TEMPDIR/head +grep -v '^[ ]*$' $TEMPDIR/pspp.list | head -2 > $TEMPDIR/head if [ $? -ne 0 ] ; then no_result ; fi activity="extract data"