From 30c08f92e136ac84fbc05d1cadf78c2c80ddd000 Mon Sep 17 00:00:00 2001 From: helenyao Date: Thu, 1 Jun 2017 12:05:14 +0800 Subject: [Functest] Fix the issue that no return_value exists Save the execution return code to file before exiting Change-Id: I73692754b4c4c4b584d5918db7ce446bad931920 Signed-off-by: helenyao --- jjb/functest/functest-suite.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/functest/functest-suite.sh b/jjb/functest/functest-suite.sh index 228cc3da4..5d1ed28f5 100755 --- a/jjb/functest/functest-suite.sh +++ b/jjb/functest/functest-suite.sh @@ -15,4 +15,7 @@ for test in ${tests[@]}; do let global_ret_val+=$? done -exit $global_ret_val +ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value" +echo ${global_ret_val}>${ret_val_file} + +exit 0 -- cgit 1.2.3-korg