diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-09-18 16:04:09 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-09-18 16:04:09 (GMT) |
commit | 624d5d9a8e27fdad93208821d1cd7f535d2ca61a (patch) | |
tree | cdcca9b4b405a5efde03670ff0809ffc9be7dba5 /test/testswmr.sh.in | |
parent | 671649f6f2a9b3903c815d225f0ea6d1e596a6d5 (diff) | |
download | hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.zip hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.tar.gz hdf5-624d5d9a8e27fdad93208821d1cd7f535d2ca61a.tar.bz2 |
HDFFV-10740 - skip copying dirs in for loops
Diffstat (limited to 'test/testswmr.sh.in')
-rw-r--r-- | test/testswmr.sh.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/testswmr.sh.in b/test/testswmr.sh.in index f81a7d7..a41947e 100644 --- a/test/testswmr.sh.in +++ b/test/testswmr.sh.in @@ -131,9 +131,10 @@ for FILE in swmr*; do case "$FILE" in *.o) continue ;; ## don't copy the .o files esac - cp $FILE swmr_test + if test -f "$FILE" ; then + cp $FILE swmr_test + fi done -cp swmr* swmr_test # With the --disable-shared option, swmr program files are built in the test # directory, otherwise they are in test/.libs with a corresponding wrapper @@ -145,7 +146,9 @@ if [ -f .libs/swmr ]; then case "$FILE" in *.o) continue ;; ## don't copy the .o files esac - cp $FILE swmr_test/.libs + if test -f "$FILE" ; then + cp $FILE swmr_test/.libs + fi done fi @@ -153,7 +156,7 @@ cd swmr_test # Loop over index types -for index_type in "-i ea" "-i b2" +for index_type in "-i ea" "-i b2" do # Try with and without compression for compress in "" "-c 5" |