summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2024-03-18 01:47:59 (GMT)
committerGitHub <noreply@github.com>2024-03-18 01:47:59 (GMT)
commitfa44de4cdbc125f644369834983c65811be12335 (patch)
treef22ff97ee1998243c2e61c4e445ed01e056d41ba
parent2908dd1d12f82b3ad559e98ae639fac2c238bcdd (diff)
downloadhdf5-fa44de4cdbc125f644369834983c65811be12335.zip
hdf5-fa44de4cdbc125f644369834983c65811be12335.tar.gz
hdf5-fa44de4cdbc125f644369834983c65811be12335.tar.bz2
Fix mirror VFD script (#4170)
This had directory problems when running locally.
-rw-r--r--test/test_mirror.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_mirror.sh.in b/test/test_mirror.sh.in
index ec77730..ab092e5 100644
--- a/test/test_mirror.sh.in
+++ b/test/test_mirror.sh.in
@@ -41,14 +41,14 @@ while [ $# -gt 0 ]; do
esac
done
-
-
RUN_DIR=mirror_vfd_test
MIRROR_UTILS=../utils/mirror_vfd # TODO: presupposes from test/
-if [[ ! -d $RUN_DIR ]] ; then
- mkdir $RUN_DIR
+# Start clean
+if test -d $RUN_DIR ; then
+ rm -rf $RUN_DIR
fi
+mkdir $RUN_DIR
# Copy program files into dedicated test directory
for FILE in $MIRROR_UTILS/mirror_* ; do
@@ -65,7 +65,7 @@ cp mirror_vfd $RUN_DIR
if [ -f $MIRROR_UTILS/.libs/mirror_server ] ; then
RUN_LIBS=$RUN_DIR/.libs
# Delete previous .libs directory, to remove any generated libtool files
- if [[ -d $RUN_LIBS ]] ; then
+ if test -d $RUN_LIBS ; then
rm -rf $RUN_LIBS
fi
mkdir $RUN_LIBS