From d15f3accdc6540913e82b9862566baa5d6a8a683 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 2 Jul 2013 17:57:16 -0400 Subject: [PATCH] Add option to run stress tests. This commit adds a new environmental variable to enable running the tempest stress tests. If DEVSTACK_GATE_TEMPEST_STRESS is set to 1 then the stress tests will be run. Change-Id: I93a99e587eeb5b6624256696c0109293f835b474 --- devstack-vm-gate-wrap.sh | 3 +++ devstack-vm-gate.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index 493c9d1a..2a8d92f2 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -341,6 +341,9 @@ export DEVSTACK_GATE_ZEROMQ=${DEVSTACK_GATE_ZEROMQ:-0} # Set to 1 to run nova coverage with Tempest export DEVSTACK_GATE_TEMPEST_COVERAGE=${DEVSTACK_GATE_TEMPEST_COVERAGE:-0} +# Set to 1 to run tempest stress tests +export DEVSTACK_GATE_TEMPEST_STRESS=${DEVSTACK_GATE_TEMPEST_STRESS:-0} + export DEVSTACK_GATE_CINDER=${DEVSTACK_GATE_CINDER:-0} # Set to 1 to enable Cinder secure delete. diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index 8fbe6c7f..fc186a87 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -241,6 +241,9 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then elif [[ "$DEVSTACK_GATE_TEMPEST_COVERAGE" -eq "1" ]] ; then echo "Generating coverage report" sudo -H -u stack tox -ecoverage -- -o $BASE/new/tempest/coverage-report + elif [[ "$DEVSTACK_GATE_TEMPEST_STRESS" -eq "1" ]] ; then + echo "Running stress tests" + sudo -H -u stack tox -estress else echo "Running tempest smoke tests" sudo -H -u stack tox -esmoke