diff options
author | Jose Lausuch <jalausuch@suse.com> | 2017-10-17 16:27:43 +0200 |
---|---|---|
committer | Jose Lausuch <jalausuch@suse.com> | 2017-10-17 14:29:52 +0000 |
commit | f612c09e6fe092dc5a3d89f1ca83e7eb389cbc2d (patch) | |
tree | 6f2c2a60955b4d5e971fdcdddafa7db32b6ffc8f | |
parent | b040e3b644262b544d24a74f5787f6cb4e0476c8 (diff) |
[Functest] Add TESTCASE_OPTIONS env variable to the Alpine containers
This patch also removes the --report flag when running a single
test case (functest-suite type of jobs)
Change-Id: Ic94fba53ced7c6f908905c02577e1b104f15afb7
Signed-off-by: Jose Lausuch <jalausuch@suse.com>
-rwxr-xr-x | jjb/functest/functest-alpine.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/functest/functest-alpine.sh b/jjb/functest/functest-alpine.sh index f5f39b8ff..bd2bdf4a8 100755 --- a/jjb/functest/functest-alpine.sh +++ b/jjb/functest/functest-alpine.sh @@ -15,7 +15,7 @@ run_tiers() { FUNCTEST_IMAGE=opnfv/functest-${tier}:${DOCKER_TAG} echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..." docker pull ${FUNCTEST_IMAGE}>/dev/null - cmd="docker run --privileged=true ${envs} ${volumes} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" + cmd="docker run --privileged=true ${envs} ${volumes} ${TESTCASE_OPTIONS} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" echo "Running Functest tier '${tier}'. CMD: ${cmd}" eval ${cmd} ret_value=$? @@ -31,7 +31,7 @@ run_tiers() { run_test() { test_name=$1 - cmd_opt="prepare_env start && run_tests -r -t ${test_name}" + cmd_opt="prepare_env start && run_tests -t ${test_name}" [[ $BUILD_TAG =~ "suite" ]] && cmd_opt="prepare_env start && run_tests -t ${test_name}" ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value" echo 0 > ${ret_val_file} @@ -56,7 +56,7 @@ run_test() { esac echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..." docker pull ${FUNCTEST_IMAGE}>/dev/null - cmd="docker run --privileged=true ${envs} ${volumes} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" + cmd="docker run --privileged=true ${envs} ${volumes} ${TESTCASE_OPTIONS} ${FUNCTEST_IMAGE} /bin/bash -c '${cmd_opt}'" echo "Running Functest test case '${test_name}'. CMD: ${cmd}" eval ${cmd} ret_value=$? |