From f612c09e6fe092dc5a3d89f1ca83e7eb389cbc2d Mon Sep 17 00:00:00 2001 From: Jose Lausuch Date: Tue, 17 Oct 2017 16:27:43 +0200 Subject: [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 --- jjb/functest/functest-alpine.sh | 6 +++--- 1 file 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=$? -- cgit 1.2.3-korg