Commit 73388cb5 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

CI: Run immv/imcp scripts under different user

parent fffeab28
......@@ -48,11 +48,11 @@ xvfb-run python test --addopts="$TEST_OPTS tests/"
# unintuitively, includes nobody)
chmod -R a+w `pwd`
cmd="source /test.venv/bin/activate && python test"
cmd="$cmd --addopts='$TEST_OPTS tests/'"
cmd="$cmd --addopts='$TEST_OPTS tests/test_scripts/ 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/"
python test --addopts="$TEST_OPTS -m 'not longtest' --ignore=tests/ --ignore=tests/ --ignore=tests/ --ignore=tests/test_scripts/"
# Long tests are only run on release branches
if [[ $CI_COMMIT_REF_NAME == v* ]]; then
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