Use computes + control for NUM_OS_SYSTEM
[releng.git] / jjb / functest / functest-suite.sh
1 #!/bin/bash
2
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"
6     exit 1
7 fi
8
9 global_ret_val=0
10
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+=$?
16 done
17
18 ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
19 echo ${global_ret_val}>${ret_val_file}
20
21 exit 0