3 container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)
4 if [ -z $container_id ]; then
5 echo "Functest container not found"
11 tests=($(echo $FUNCTEST_SUITE_NAME | tr "," "\n"))
12 for test in ${tests[@]}; do
13 if [ "$BRANCH" == 'master' ]; then
14 cmd="run_tests -t $test"
16 cmd="python /home/opnfv/repos/functest/functest/ci/run_tests.py -t $test"
18 docker exec $container_id $cmd
19 let global_ret_val+=$?
22 ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
23 echo ${global_ret_val}>${ret_val_file}