Skip to content

Commit

Permalink
add sudo permissions to swift functional jobs
Browse files Browse the repository at this point in the history
the swift functional jobs need to run as the stack user if they are
going to build the .tox directory in the appropriate tree.

Change-Id: Ifc3e862b0fe86928c3943a41f07cd086d6ace6fe
  • Loading branch information
sdague committed Feb 18, 2015
1 parent 14f6593 commit 57ecb48
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jenkins/jobs/swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
function post_test_hook {{
cd /opt/stack/new/swift
# Launch V2 auth tests and v1 tests after.
timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func && \
sudo -H -u stack timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func && \
SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \
timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func
sudo -H -u stack timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
Expand Down Expand Up @@ -68,11 +68,10 @@
function post_test_hook {{
cd /opt/stack/new/python-swiftclient
sudo pip install -r test-requirements.txt
# Launch V2 auth tests and v1 tests after.
timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func && \
sudo -H -u stack timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func && \
SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \
timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func
sudo -H -u stack timeout -s 9 ${{FUNCTEST_TIMEOUT}}m tox -e func
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
Expand Down

0 comments on commit 57ecb48

Please sign in to comment.