Commit cd71e885 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

coverage was getting reset after immv/imcp tests

parent 17e8f749
......@@ -40,14 +40,16 @@ xvfb-run python test --addopts="$TEST_OPTS tests/"
sleep 5
xvfb-run python test --addopts="$TEST_OPTS tests/"
# We run the immv/imcpy 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 test --addopts="$TEST_OPTS tests/"' nobody
cmd="source /test.venv/bin/activate && python test"
cmd="$cmd --addopts='$TEST_OPTS tests/'"
su -s /bin/bash -c "$cmd" nobody
# All other tests can be run as normal.
python test --addopts="$TEST_OPTS -m 'not longtest' --ignore=tests/ --ignore=tests/ --ignore=tests/"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment