Fix post-execution for tempest tests

Manila's post_test_hook runs tempest after
populating tempest.conf with the requisite
options, the results from tempest are saved
prior to performing some post tasks, including
deciding to run tests again with a different
configuration if necessary
(Ex: manila-tempest-minimal-dsvm-dummy). The
result is then replayed at the end of the gate
job so it can be reported to gerrit as a
SUCCESS or a FAILURE.

Fix the mis-aligned command that saves the
test execution status to replay later.

Change-Id: I1578760697aeae6e20bf567c60fbcdee0a642bee
Closes-Bug: 1770183
(cherry picked from commit a0947ab42d)
This commit is contained in:
Goutham Pacha Ravi 2018-05-15 10:36:08 -07:00 committed by Tom Barron
parent 4f9387eb66
commit a6f4e23d26
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ fi
echo "Running tempest manila test suites"
cd $BASE/new/tempest/
sudo -H -u $USER tempest run -r $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY
cd -
RETVAL=$?
cd -
# If using the dummy driver, configure the second run. We can't use the
@ -382,8 +382,8 @@ if [[ "$DRIVER" == "dummy" ]]; then
echo "Running tempest manila test suites for DHSS=False mode"
cd $BASE/new/tempest/
sudo -H -u $USER tempest run -r $MANILA_TESTS --concurrency=$MANILA_TEMPEST_CONCURRENCY
cd -
RETVAL2=$?
cd -
save_tempest_results 2
# Exit with last code if first succeeded else exit with first error code