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
Evan Edmond
fslpy
Commits
7f835153
Commit
7f835153
authored
Mar 06, 2018
by
Paul McCarthy
🚵
Browse files
coverage was getting reset after immv/imcp tests
parent
b0065b6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/test_template.sh
View file @
7f835153
...
...
@@ -40,14 +40,16 @@ xvfb-run python setup.py test --addopts="$TEST_OPTS tests/test_idle.py"
sleep
5
xvfb-run python setup.py
test
--addopts
=
"
$TEST_OPTS
tests/test_platform.py"
# We run the immv/imcp
y
tests as the nobody
# We run the immv/imcp tests as the nobody
# user because some tests expect permission
# denied errors when looking at files, and
# root never gets denied. Make everything in
# this directory writable by anybody (which,
# unintuitively, includes nobody)
chmod
-R
a+w
`
pwd
`
su
-s
/bin/bash
-c
'source /test.venv/bin/activate && python setup.py test --addopts="$TEST_OPTS tests/test_immv_imcp.py"'
nobody
cmd
=
"source /test.venv/bin/activate && python setup.py test"
cmd
=
"
$cmd
--addopts='
$TEST_OPTS
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"
...
...
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