summaryrefslogtreecommitdiffstats
path: root/test/testflushrefresh.sh.in
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2017-03-22 16:48:47 (GMT)
committerlrknox <lrknox>2017-03-22 17:00:52 (GMT)
commit36a30ecfd288afdf8ea62a858644e622ce72fd58 (patch)
tree8282f7f5c7be529b6fb992de532a1924e4534e0a /test/testflushrefresh.sh.in
parentd60ca826c00533d72f94e38c1b2cf790e1b3f190 (diff)
downloadhdf5-36a30ecfd288afdf8ea62a858644e622ce72fd58.zip
hdf5-36a30ecfd288afdf8ea62a858644e622ce72fd58.tar.gz
hdf5-36a30ecfd288afdf8ea62a858644e622ce72fd58.tar.bz2
Merge pull request #358 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:develop to develop
* commit '82183c7cdc50f9dc41ef8238c6a2bef6f1c7fcde': Run all scripts using signal files between processes in their own directories to avoid accidental deletion of the signal files.
Diffstat (limited to 'test/testflushrefresh.sh.in')
-rw-r--r--test/testflushrefresh.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testflushrefresh.sh.in b/test/testflushrefresh.sh.in
index e7917a0..d894cee 100644
--- a/test/testflushrefresh.sh.in
+++ b/test/testflushrefresh.sh.in
@@ -84,7 +84,7 @@ fi
# different, occasionally the wrong file is deleted, interrupting the flow of
# the test. Running each of these tests in its own directory should eliminate
# the problem.
-mkdir -p flushrefresh_test/.libs
+mkdir flushrefresh_test
cp flushrefresh flushrefresh_test
# With the --disable-shared option, flushrefresh is built in the test directory,
@@ -92,6 +92,7 @@ cp flushrefresh flushrefresh_test
# the test directory. test/flushrefresh should always be copied,
# .libs/flushrefresh should be copied only if it exists.
if [ -f .libs/flushrefresh ]; then
+ mkdir flushrefresh_test/.libs
cp .libs/flushrefresh flushrefresh_test/.libs
fi
cd flushrefresh_test
@@ -210,6 +211,10 @@ fi
if test $nerrors -eq 0 ; then
echo "flush/refresh objects tests passed."
+ if test -z "$HDF5_NOCLEANUP"; then
+ # delete the test directory
+ rm -rf flushrefresh_test
+ fi
exit 0
else
echo "flush/refresh objects tests failed with $nerrors errors."