Skip to content

Commit 9709c26

Browse files
committed
Add improvement to retry mechanism for exit when success
Retry works, but gitlab-olp-cpp-sdk-functional-test.sh returns 0 not always when tests succeded, so retry work till the end of retry limit and does not end on success Relates-to: OLPEDGE-1144 Signed-off-by: Yaroslav Stefinko <[email protected]>
1 parent 81e4aa3 commit 9709c26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/linux/fv/gitlab-olp-cpp-sdk-functional-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -e
1+
#!/bin/bash -ex
22
#
33
# Copyright (C) 2019 HERE Europe B.V.
44
#
@@ -39,6 +39,7 @@ source $FV_HOME/olp-cpp-sdk-functional-test.variables
3939
$REPO_HOME/build/tests/functional/olp-cpp-sdk-functional-tests \
4040
--gtest_output="xml:$REPO_HOME/reports/olp-functional-test-report.xml" \
4141
--gtest_filter="-ArcGisAuthenticationTest.SignInArcGis":"FacebookAuthenticationTest.SignInFacebook"
42+
export result=$?
4243

4344
# Kill local server
4445
kill -15 ${SERVER_PID}

scripts/linux/fv/gitlab_test_fv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ do
6060

6161
# Run functional tests
6262
${FV_HOME}/gitlab-olp-cpp-sdk-functional-test.sh 2>> errors.txt
63-
if [[ $? -eq 1 ]]; then
63+
if [[ $? -eq 1 || ${result} -eq 1 ]]; then
6464
TEST_FAILURE=1
6565
continue
6666
else

0 commit comments

Comments
 (0)