Fix status check procedure

Currently this functions can set build status to failed by mistake due to error
in code checking function

Change-Id: I28411be2ada27417466a18eee349231246978079
This commit is contained in:
Sergey Kolekonov 2015-03-11 19:12:48 +03:00
parent 2f82a7bdc8
commit b6fc1f82ba
2 changed files with 3 additions and 3 deletions

View File

@ -278,7 +278,7 @@ run_tests() {
vanilla2)
if [[ "$JOB_NAME" =~ scenario ]]; then
tox -e scenario $TESTS_CONFIG_FILE | tee tox.log
STATUS=$(grep "\ -\ Failed" tox.log | awk -F ':' '{print $2}')
STATUS=$(grep "\ -\ Failed" tox.log | awk '{print $3}')
else
tox -e integration -- vanilla2 --concurrency=1
STATUS=$?
@ -295,7 +295,7 @@ run_tests() {
spark)
if [[ "$JOB_NAME" =~ scenario ]]; then
tox -e scenario $TESTS_CONFIG_FILE | tee tox.log
STATUS=$(grep "\ -\ Failed" tox.log | awk -F ':' '{print $2}')
STATUS=$(grep "\ -\ Failed" tox.log | awk '{print $3}')
else
tox -e integration -- spark --concurrency=1
STATUS=$?

View File

@ -61,7 +61,7 @@ write_sahara_main_conf $SAHARA_PATH/etc/sahara/sahara.conf
start_sahara $SAHARA_PATH/etc/sahara/sahara.conf
tox -e all -- tempest.scenario.data_processing.client_tests | tee tox.log
STATUS=$(grep "\ -\ Failed" tox.log | awk -F ':' '{print $2}')
STATUS=$(grep "\ -\ Failed" tox.log | awk '{print $3}')
mv logs $WORKSPACE
print_python_env $WORKSPACE