]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Python 3: make post_test_hook work with more tox targets
authorCyril Roelandt <cyril@redhat.com>
Tue, 13 Oct 2015 12:46:39 +0000 (14:46 +0200)
committerCyril Roelandt <cyril@redhat.com>
Wed, 14 Oct 2015 09:59:41 +0000 (11:59 +0200)
This makes it possible to run the script with different "flavors" of
"dsvm-functional" and "dsvm-fullstack". In particular, this is needed to
have a dsvm-functional-py34 gate running (see
https://review.openstack.org/#/c/233177/).

Change-Id: I38cadeecff6a8c0c55c103095c045a3e0c39bee1
Partial-Bug: #1500400

neutron/tests/contrib/post_test_hook.sh

index c42649b70a091c8acc754a9a7c2d7f15e1d71202..867002d1e6cd0e8913c6b7b23839e0ffbd13d8f7 100644 (file)
@@ -33,13 +33,13 @@ function generate_testr_results {
         sudo mv ./*.gz /opt/stack/logs/
     fi
 
-    if [ "$venv" == "dsvm-functional" ] || [ "$venv" == "dsvm-fullstack" ]
+    if [[ "$venv" == dsvm-functional* ]] || [[ "$venv" == dsvm-fullstack* ]]
     then
         generate_test_logs "/tmp/${venv}-logs"
     fi
 }
 
-if [ "$venv" == "dsvm-functional" ] || [ "$venv" == "dsvm-fullstack" ]
+if [[ "$venv" == dsvm-functional* ]] || [[ "$venv" == dsvm-fullstack* ]]
 then
     owner=stack
     sudo_env=