4 branch=${GIT_BRANCH##*/}
5 echo "Functest: run $FUNCTEST_SUITE_NAME on branch ${branch}"
6 if [[ ${branch} == *"brahmaputra"* ]]; then
7 cmd="${FUNCTEST_REPO_DIR}/docker/run_tests.sh --test $FUNCTEST_SUITE_NAME"
8 elif [[ ${branch} == *"colorado"* ]]; then
9 cmd="python ${FUNCTEST_REPO_DIR}/ci/run_tests.py -t $FUNCTEST_SUITE_NAME"
11 cmd="functest testcase run $FUNCTEST_SUITE_NAME"
13 container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)
14 docker exec $container_id $cmd