diff options
author | 2017-07-04 14:35:23 +0200 | |
---|---|---|
committer | 2017-07-04 14:35:23 +0200 | |
commit | 7751297321734380928506bd7382cc1c9578057e (patch) | |
tree | 0a116b48e02f0a31dfd9a39cefce6a19280a7e32 /jjb/functest | |
parent | 52652dfc80da5267910a952272f863070a0e7a06 (diff) |
Use former calls to running Functest in Danube
Change-Id: I472a41e3c2ad41e97a6f4ea3b82d72df73c8416b
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb/functest')
-rwxr-xr-x | jjb/functest/functest-loop.sh | 6 | ||||
-rwxr-xr-x | jjb/functest/functest-suite.sh | 6 | ||||
-rwxr-xr-x | jjb/functest/set-functest-env.sh | 7 |
3 files changed, 16 insertions, 3 deletions
diff --git a/jjb/functest/functest-loop.sh b/jjb/functest/functest-loop.sh index a590d9f95..00a5f135b 100755 --- a/jjb/functest/functest-loop.sh +++ b/jjb/functest/functest-loop.sh @@ -2,7 +2,11 @@ set +e [[ "$PUSH_RESULTS_TO_DB" == "true" ]] && flags+="-r" -cmd="run_tests -t all ${flags}" +if [ "$BRANCH" == 'master' ]; then + cmd="run_tests -t all ${flags}" +else + cmd="python ${FUNCTEST_REPO_DIR}/functest/ci/run_tests.py -t all ${flags}" +fi container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1) docker exec $container_id $cmd diff --git a/jjb/functest/functest-suite.sh b/jjb/functest/functest-suite.sh index 469a57726..9b7f1356c 100755 --- a/jjb/functest/functest-suite.sh +++ b/jjb/functest/functest-suite.sh @@ -10,7 +10,11 @@ global_ret_val=0 tests=($(echo $FUNCTEST_SUITE_NAME | tr "," "\n")) for test in ${tests[@]}; do - cmd="run_tests -t $test" + if [ "$BRANCH" == 'master' ]; then + cmd="run_tests -t $test" + else + cmd="python /home/opnfv/repos/functest/functest/ci/run_tests.py -t $test" + fi docker exec $container_id $cmd let global_ret_val+=$? done diff --git a/jjb/functest/set-functest-env.sh b/jjb/functest/set-functest-env.sh index 01cab5e0f..5f936f5d9 100755 --- a/jjb/functest/set-functest-env.sh +++ b/jjb/functest/set-functest-env.sh @@ -90,7 +90,12 @@ if [ $(docker ps | grep "${FUNCTEST_IMAGE}:${DOCKER_TAG}" | wc -l) == 0 ]; then exit 1 fi -cmd="prepare_env start" +if [ "$BRANCH" == 'master' ]; then + cmd="prepare_env start" +else + cmd="python ${FUNCTEST_REPO_DIR}/functest/ci/prepare_env.py start" +fi + echo "Executing command inside the docker: ${cmd}" docker exec ${container_id} ${cmd} |