Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
Evan Edmond
fslpy
Commits
73388cb5
Commit
73388cb5
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
CI: Run immv/imcp scripts under different user
parent
fffeab28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/test_template.sh
+2
-2
2 additions, 2 deletions
.ci/test_template.sh
with
2 additions
and
2 deletions
.ci/test_template.sh
+
2
−
2
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
...
...
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