summaryrefslogtreecommitdiffstats
path: root/jjb/functest/functest-exit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/functest/functest-exit.sh')
-rw-r--r--jjb/functest/functest-exit.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/jjb/functest/functest-exit.sh b/jjb/functest/functest-exit.sh
new file mode 100644
index 000000000..10edab005
--- /dev/null
+++ b/jjb/functest/functest-exit.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+branch=${GIT_BRANCH##*/}
+ret_val_file="${HOME}/opnfv/functest/results/${branch}/return_value"
+if [ ! -f ${ret_val_file} ]; then
+ echo "Return value not found!"
+ exit -1
+fi
+
+ret_val=`cat ${ret_val_file}`
+
+exit ${ret_val} \ No newline at end of file