fixed: remove hdf5 files used in restart tests before executing test

to avoid confusing results if tests are re-run in the same build
directory.
This commit is contained in:
Arne Morten Kvarving
2018-10-31 12:20:40 +01:00
parent a3c681a23d
commit b37578eefd

View File

@@ -25,7 +25,12 @@ else
fi
hdf5=""
tmplog=`mktemp -t ifemlogXXXXXX`
test -n "$4" && hdf5="-hdf5 @CMAKE_BINARY_DIR@/Testing/$3"
if test -n "$4"
then
hdf5="-hdf5 @CMAKE_BINARY_DIR@/Testing/$3"
rm -f @CMAKE_BINARY_DIR@/Testing/$3.hdf5
rm -f @CMAKE_BINARY_DIR@/Testing/$3_restart.hdf5
fi
$mysim $hdf5 $MAPFILE 2>&1 > $tmplog
retcode=$?
if test $retcode -ne 0