Directly call Functest console scripts 05/36805/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 30 Jun 2017 20:03:09 +0000 (22:03 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 30 Jun 2017 20:07:44 +0000 (22:07 +0200)
It conforms jjobs with "Define console_scripts" [1].

[1] https://gerrit.opnfv.org/gerrit/#/c/36781/

Change-Id: I9209e6efa1b493e24135402a46df72aaa14115d1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jjb/functest/functest-loop.sh
jjb/functest/functest-suite.sh
jjb/functest/set-functest-env.sh

index 6768906..a590d9f 100755 (executable)
@@ -2,7 +2,7 @@
 set +e
 
 [[ "$PUSH_RESULTS_TO_DB" == "true" ]] && flags+="-r"
-cmd="python ${FUNCTEST_REPO_DIR}/functest/ci/run_tests.py -t all ${flags}"
+cmd="run_tests -t all ${flags}"
 
 container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)
 docker exec $container_id $cmd
index 5d1ed28..469a577 100755 (executable)
@@ -10,7 +10,7 @@ global_ret_val=0
 
 tests=($(echo $FUNCTEST_SUITE_NAME | tr "," "\n"))
 for test in ${tests[@]}; do
-    cmd="python /home/opnfv/repos/functest/functest/ci/run_tests.py -t $test"
+    cmd="run_tests -t $test"
     docker exec $container_id $cmd
     let global_ret_val+=$?
 done
index 558e248..01cab5e 100755 (executable)
@@ -90,7 +90,7 @@ if [ $(docker ps | grep "${FUNCTEST_IMAGE}:${DOCKER_TAG}" | wc -l) == 0 ]; then
     exit 1
 fi
 
-cmd="python ${FUNCTEST_REPO_DIR}/functest/ci/prepare_env.py start"
+cmd="prepare_env start"
 
 echo "Executing command inside the docker: ${cmd}"
 docker exec ${container_id} ${cmd}