Some minor code optimization in post_test_hook.sh

set -ex is helpful for debugging test progress and
make test quit promptly once exception happens

Change-Id: I241a23c20f79bcae1d16858cc521971b6388bfe8
This commit is contained in:
zhangyanxian 2016-08-25 07:08:43 +00:00
parent b89bc39671
commit 0ba0eae84c
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@
# This script is executed inside post_test_hook function in devstack gate.
set -ex
sudo chmod -R a+rw /opt/stack/
(cd $BASE/new/tempest/; sudo virtualenv .venv)
source $BASE/new/tempest/.venv/bin/activate