From 0ba0eae84c168c19c339be8ae8e5ffa5ecfecba3 Mon Sep 17 00:00:00 2001 From: zhangyanxian Date: Thu, 25 Aug 2016 07:08:43 +0000 Subject: [PATCH] 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 --- functionaltests/post_test_hook.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functionaltests/post_test_hook.sh b/functionaltests/post_test_hook.sh index aad3c015d..798ec2846 100755 --- a/functionaltests/post_test_hook.sh +++ b/functionaltests/post_test_hook.sh @@ -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