From ffb5861b15ec17f456c9defc3e3e33eb2a108f78 Mon Sep 17 00:00:00 2001 From: hparekh Date: Fri, 29 Jan 2016 13:54:13 +0900 Subject: [PATCH] Mistral tests will run from tempest plugin Now mistral functional tests run from tempest repository using plugin in devstack gate. Change-Id: I67933fdc55b6f53dbd3e620f9814c0d919c85533 --- functionaltests/post_test_hook.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/functionaltests/post_test_hook.sh b/functionaltests/post_test_hook.sh index 183fa2d52..aad3c015d 100755 --- a/functionaltests/post_test_hook.sh +++ b/functionaltests/post_test_hook.sh @@ -14,14 +14,19 @@ # This script is executed inside post_test_hook function in devstack gate. +sudo chmod -R a+rw /opt/stack/ +(cd $BASE/new/tempest/; sudo virtualenv .venv) +source $BASE/new/tempest/.venv/bin/activate -RETVAL=0 +(cd $BASE/new/tempest/; sudo pip install -r requirements.txt -r test-requirements.txt) +sudo pip install nose +sudo pip install numpy -sudo chmod -R a+rw /opt/stack/new/ -cd /opt/stack/new/mistral +sudo cp $BASE/new/tempest/etc/logging.conf.sample $BASE/new/tempest/etc/logging.conf -echo "Running Mistral API tests" -./functionaltests/run_tests.sh -RETVAL=$? +(cd $BASE/new/mistral/; sudo pip install -r requirements.txt -r test-requirements.txt) +(cd $BASE/new/mistral/; sudo python setup.py install) -exit $RETVAL +export TOX_TESTENV_PASSENV=ZUUL_PROJECT +(cd $BASE/new/tempest/; sudo -E testr init) +(cd $BASE/new/tempest/; sudo -E tox -eall-plugin mistral) \ No newline at end of file