pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/41981?usp=email )

Change subject: ttcn3-bts-test: fail on unexpected respawn count
......................................................................

ttcn3-bts-test: fail on unexpected respawn count

Suggested-by: Pau Espin Pedrol <[email protected]>
Change-Id: Idd9f8dcf1a7186a0715c1026da44f404c1c574d9
---
M ttcn3-bts-test/jenkins.sh
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved




diff --git a/ttcn3-bts-test/jenkins.sh b/ttcn3-bts-test/jenkins.sh
index 6d738c4..6f75266 100755
--- a/ttcn3-bts-test/jenkins.sh
+++ b/ttcn3-bts-test/jenkins.sh
@@ -279,7 +279,7 @@
        docker_kill_wait ${BUILD_TAG}-bts
 }

-show_respawn_count() {
+check_respawn_count() {
        set +x
        local count=$(grep -P 'respawn: \d+: starting: ' 
"$VOL_BASE_DIR"/bts/osmo-bts.log | wc -l)
        # Currently we run generic/bts/oml configurations, which means 3
@@ -298,6 +298,7 @@
        echo "================================================================"
        echo
        printf '\033[0m'
+       exit 1
 }

 network_create
@@ -346,4 +347,4 @@

 # Show respawn count at the very end
 clean_up_common
-show_respawn_count
+check_respawn_count

--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/41981?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Idd9f8dcf1a7186a0715c1026da44f404c1c574d9
Gerrit-Change-Number: 41981
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to