diff --git a/slave-scripts/functions.sh b/slave-scripts/functions.sh index 43d13dd1..d722b317 100644 --- a/slave-scripts/functions.sh +++ b/slave-scripts/functions.sh @@ -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=$? diff --git a/slave-scripts/tempest.sh b/slave-scripts/tempest.sh index 4d0afce6..91efc040 100644 --- a/slave-scripts/tempest.sh +++ b/slave-scripts/tempest.sh @@ -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