X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fcommand%2Foneway-with-splits.sh;h=3075467cbd114faf98ba6cb68114b6c40bee42a9;hb=9074ccc083d5d68f0d3a2843106165a6d99ae1c6;hp=93acda68abb64ad972264c2e7a36198db350a845;hpb=f52b6f9c47aef9ff3f5a0f77c4e0a35478b286b7;p=pspp diff --git a/tests/command/oneway-with-splits.sh b/tests/command/oneway-with-splits.sh index 93acda68ab..3075467cbd 100755 --- a/tests/command/oneway-with-splits.sh +++ b/tests/command/oneway-with-splits.sh @@ -4,6 +4,7 @@ # when SPLIT FILE is active TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps here=`pwd`; @@ -15,7 +16,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 } @@ -47,8 +52,8 @@ mkdir -p $TEMPDIR cd $TEMPDIR activity="create program" -cat > $TEMPDIR/out.stat < $TESTFILE <