Skip to content

Commit

Permalink
have swift functional tests use tox
Browse files Browse the repository at this point in the history
the swift functional tests should use tox targets when run in the gate
so that their test requirements can be specified in the swift project
itself, instead of being bound to what might be available in the base
image.

Depends-On: I730f1bb530215ba7c30bf32a1c3bbc16edd5c217

Change-Id: Ida1ee74162cb3b0f575364f9e4bf7742ccd9a794
  • Loading branch information
sdague committed Feb 17, 2015
1 parent 1777819 commit 091a6c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 bash .functests --verbosity=3 && \
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 bash .functests --verbosity=3
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 @@ -69,9 +69,9 @@
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 bash .functests --verbosity=3 && \
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 bash .functests --verbosity=3
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 091a6c7

Please sign in to comment.