merge GIT_BRANCH and GERRIT_BRANCH into BRANCH
[releng.git] / jjb / functest / functest-exit.sh
1 #!/bin/bash
2
3 ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
4 if [ ! -f ${ret_val_file} ]; then
5     echo "Return value not found!"
6     exit -1
7 fi
8
9 ret_val=`cat ${ret_val_file}`
10
11 exit ${ret_val}