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
This commit is contained in:
Clark Boylan
2014-03-31 19:33:20 -07:00
parent d61f684619
commit 3a7ddaa377

View File

@@ -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=$?