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 cmd="run_tests -t $test"
14 docker exec $container_id $cmd
15 let global_ret_val+=$?
18 ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
19 echo ${global_ret_val}>${ret_val_file}