Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c1d4d62e
Commit
c1d4d62e
authored
6 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildconfig/Jenkins/systemtests
+7
-0
7 additions, 0 deletions
buildconfig/Jenkins/systemtests
buildconfig/Jenkins/systemtests.bat
+8
-0
8 additions, 0 deletions
buildconfig/Jenkins/systemtests.bat
with
15 additions
and
0 deletions
buildconfig/Jenkins/systemtests
+
7
−
0
View file @
c1d4d62e
...
...
@@ -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/
...
...
This diff is collapsed.
Click to expand it.
buildconfig/Jenkins/systemtests.bat
+
8
−
0
View file @
c1d4d62e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment