Skip to content
Snippets Groups Projects
Commit c1d4d62e authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Remove old ExternalData files and user instrument data...

when running systemtests
parent 51a3374c
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,11 @@ fi
[ -d $WORKSPACE/build ] || mkdir $WORKSPACE/build
cd $WORKSPACE/build
# Remove (possibly) stale files
# build/ExternalData/**: data files will change over time and removing
# the links helps keep it fresh
rm -rf $WORKSPACE/build/ExternalData
###############################################################################
# CMake configuration if it has not already been configured.
# We use the special flag that only creates the targets for the data
......@@ -76,6 +81,8 @@ rm -f $userprops
echo "UpdateInstrumentDefinitions.OnStartup = 0" > $userprops
echo "usagereports.enabled = 0" >> $userprops
echo "CheckMantidVersion.OnStartup = 0" >> $userprops
# Remove user instrument directory
rm -fr ~/.mantid/instrument
# Remove mismatch files which have not been cleaned up yet
default_save_directory=${WORKSPACE}/build/Testing/SystemTests/scripts/
......
......@@ -34,6 +34,11 @@ if NOT DEFINED MANTID_DATA_STORE (
md %WORKSPACE%\build
cd %WORKSPACE%\build
:: Remove (possibly) stale files
:: build/ExternalData/**: data files will change over time and removing
:: the links helps keep it fresh
rmdir /S /Q %WORKSPACE%\build\ExternalData
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: CMake configuration if it has not already been configured.
:: We use the special flag that only creates the targets for the data
......@@ -70,6 +75,9 @@ echo CheckMantidVersion.OnStartup = 0 >> %USERPROPS_RELEASE%
echo UpdateInstrumentDefinitions.OnStartup = 0 > %USERPROPS_NIGHTLY%
echo usagereports.enabled = 0 >> %USERPROPS_NIGHTLY%
echo CheckMantidVersion.OnStartup = 0 >> %USERPROPS_NIGHTLY%
:: Remove user instrument directory
rmdir /S /Q %APPDATA%\mantidproject\mantid\instrument
:: Run
set PKGDIR=%WORKSPACE%\build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment