summaryrefslogtreecommitdiffstats
path: root/jjb/functest/functest-suite.sh
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2017-06-01 12:05:14 +0800
committerJose Lausuch <jose.lausuch@ericsson.com>2017-06-01 08:39:06 +0000
commit30c08f92e136ac84fbc05d1cadf78c2c80ddd000 (patch)
treeb84b6060afa765685de27a564e343e8f8adbe947 /jjb/functest/functest-suite.sh
parentc08f0ef55c70d61aa45c6268f2ab88bb4b446c28 (diff)
[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 <yaohelan@huawei.com>
Diffstat (limited to 'jjb/functest/functest-suite.sh')
-rwxr-xr-xjjb/functest/functest-suite.sh5
1 files changed, 4 insertions, 1 deletions
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