Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
73388cb5
Commit
73388cb5
authored
May 08, 2019
by
Paul McCarthy
🚵
Browse files
CI: Run immv/imcp scripts under different user
parent
fffeab28
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/test_template.sh
View file @
73388cb5
...
...
@@ -48,11 +48,11 @@ xvfb-run python setup.py test --addopts="$TEST_OPTS tests/test_platform.py"
# unintuitively, includes nobody)
chmod
-R
a+w
`
pwd
`
cmd
=
"source /test.venv/bin/activate && python setup.py test"
cmd
=
"
$cmd
--addopts='
$TEST_OPTS
tests/test_immv_imcp.py'"
cmd
=
"
$cmd
--addopts='
$TEST_OPTS
tests/test_scripts/test_immv_imcp.py
tests/test_immv_imcp.py'"
su
-s
/bin/bash
-c
"
$cmd
"
nobody
# All other tests can be run as normal.
python setup.py
test
--addopts
=
"
$TEST_OPTS
-m 'not longtest' --ignore=tests/test_idle.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py"
python setup.py
test
--addopts
=
"
$TEST_OPTS
-m 'not longtest' --ignore=tests/test_idle.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py
--ignore=tests/test_scripts/test_immv_imcp.py
"
# Long tests are only run on release branches
if
[[
$CI_COMMIT_REF_NAME
==
v
*
]]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment