From 3a7ddaa37774e64d7455a2bd2bf0fe8b68786148 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 31 Mar 2014 19:33:20 -0700 Subject: [PATCH] Enable large ops if flag is >= 1 The largeops flag value is now used to set the number of concurrent VMs to start which means we cannot simply check against 1 to see if the job is enabled. Any value greater than 1 is also valid. Make the comparison `"$DEVSTACK_GATE_TEMPEST_LARGE_OPS" -ge "1"` to catch non default cases. Change-Id: Ifbfeb3ee47373d4ba0046acc1daa6cb0e85554f2 --- devstack-vm-gate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index ff47384f..e77eadb7 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -217,7 +217,7 @@ EOF fi if [ "$DEVSTACK_GATE_TEMPEST_LARGE_OPS" -eq "1" ]; then - # NOTE(danms): Temporary transition to =NUM_RESOURCES + # NOTE(danms): Temporary transition to =NUM_RESOURCES echo "VIRT_DRIVER=fake" >> localrc echo "TEMPEST_LARGE_OPS_NUMBER=50" >>localrc elif [ "$DEVSTACK_GATE_TEMPEST_LARGE_OPS" -gt "1" ]; then @@ -354,7 +354,7 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then echo "Running slow heat tests" sudo -H -u tempest tox -eheat-slow -- --concurrency=$TEMPEST_CONCURRENCY res=$? - elif [[ "$DEVSTACK_GATE_TEMPEST_LARGE_OPS" -eq "1" ]] ; then + elif [[ "$DEVSTACK_GATE_TEMPEST_LARGE_OPS" -ge "1" ]] ; then echo "Running large ops tests" sudo -H -u tempest tox -elarge-ops -- --concurrency=$TEMPEST_CONCURRENCY res=$?