X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Foneway.sh;h=6245ec8fd28e3d7e2941efdfad5c3392a4b620c3;hb=5a33cc6d78fe87ff5e9bd32ea4af3f895e4ad2fc;hp=e81d8032910a25b7223853e10561b97e4dda2be6;hpb=2c9a5954d98d4dd508d8fbf2496f2bb819527a46;p=pspp diff --git a/tests/command/oneway.sh b/tests/command/oneway.sh index e81d803291..6245ec8fd2 100755 --- a/tests/command/oneway.sh +++ b/tests/command/oneway.sh @@ -3,6 +3,7 @@ # This program tests that the ONEWAY anova command works OK TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -14,7 +15,11 @@ export STAT_CONFIG_PATH=$top_srcdir/config cleanup() { - rm -rf $TEMPDIR + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo Not cleaning $TEMPDIR; + return ; + fi + rm -rf $TEMPDIR } @@ -46,8 +51,8 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program" -cat > $TEMPDIR/out.stat < $TESTFILE <