Forced serial execution of tempest test suit 05/11005/1
authorViktor Tikkanen <viktor.tikkanen@nokia.com>
Tue, 8 Mar 2016 11:02:02 +0000 (13:02 +0200)
committerViktor Tikkanen <viktor.tikkanen@nokia.com>
Tue, 8 Mar 2016 11:19:25 +0000 (13:19 +0200)
"-s" option is added for run_tests.sh in order to force serial
execution of test cases in Functest test suites. This option
affects currently Tempest test suite.

Using of this option will reduce number of consumed floating IP
addresses and should resolve possible concurrency problems
of testr tool. On the other hand, it will increase the total
execution time of test cases.

Change-Id: Ib685db5faa94ed498ff9a0ec6587786b60f0c73d
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
jjb/functest/functest-ci-jobs.yml

index ba5cfec..9ec4268 100644 (file)
         - shell: |
             #!/bin/bash
             set +e
-            flag=""
+            flag="-s"
             if [ "${PUSH_RESULTS_TO_DB}" == "true" ]; then
-                flag="-r"
+                flag=$flag" -r"
             fi
             echo "Functest: run $FUNCTEST_SUITE_NAME"
             cmd="${FUNCTEST_REPO_DIR}/docker/run_tests.sh --test $FUNCTEST_SUITE_NAME ${flag}"
         - shell: |
             #!/bin/bash
             set +e
-            flag=""
+            flag="-s"
             if [ "${PUSH_RESULTS_TO_DB}" == "true" ]; then
-                flag="-r"
+                flag=$flag" -r"
             fi
             cmd="${FUNCTEST_REPO_DIR}/docker/run_tests.sh ${flag}"
             container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)