fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/21640 )
Change subject: ttcn3-bts-test: fix: sleep 2 seconds before respawning the IUT ...................................................................... ttcn3-bts-test: fix: sleep 2 seconds before respawning the IUT There has been a lot of changes merged to both osmo-{bsc,bts}, so now the later seems to be respawning faster then before. Because of that, osmo-bts-trx is now reaching the limit of 500 runs on Jenkins right in the middle of ttcn3-bts-test execution: respawn.sh: exiting after 500 runs causing the remaining test cases to fail due to: "BTS_Tests.ttcn:253 : Timeout waiting for RSL bring up" Most likely, the IUT respawns several times in the windows between the test cases, i.e. after TITAN finishes one test case and before it starts another. Let's instruct respawn.sh to sleep 2 seconds before starting the process again. Change-Id: I09e5a8e7c4d28424cd0d004a8bae3cf0ade2d838 --- M ttcn3-bts-test/jenkins.sh 1 file changed, 5 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/40/21640/1 diff --git a/ttcn3-bts-test/jenkins.sh b/ttcn3-bts-test/jenkins.sh index be6a71c..957adf6 100755 --- a/ttcn3-bts-test/jenkins.sh +++ b/ttcn3-bts-test/jenkins.sh @@ -24,7 +24,6 @@ start_bts() { local variant variant="$1" - sleep_time_respawn="$2" echo Starting container with BTS if [ -z "$variant" ]; then echo ERROR: You have to specify a BTS variant @@ -35,7 +34,7 @@ --ulimit core=-1 \ -v $VOL_BASE_DIR/bts:/data \ -v $VOL_BASE_DIR/unix:/data/unix \ - -e "SLEEP_BEFORE_RESPAWN=$sleep_time_respawn" \ + -e "SLEEP_BEFORE_RESPAWN=2" \ --name ${BUILD_TAG}-bts -d \ $DOCKER_ARGS \ $REPO_USER/osmo-bts-$IMAGE_SUFFIX \ @@ -142,7 +141,7 @@ # 1) classic test suite with BSC for OML and trxcon+fake_trx start_bsc -start_bts trx 0 +start_bts trx start_fake_trx start_trxcon start_testsuite generic @@ -154,7 +153,7 @@ docker container kill ${BUILD_TAG}-fake_trx docker container kill ${BUILD_TAG}-bts cp virtphy/osmo-bts.cfg $VOL_BASE_DIR/bts/ -start_bts virtual 0 +start_bts virtual start_virtphy # ... and execute the testsuite again with different cfg #start_testsuite virtphy @@ -166,7 +165,7 @@ docker container kill ${BUILD_TAG}-bts cp oml/osmo-bts.cfg $VOL_BASE_DIR/bts/ -start_bts trx 1 +start_bts trx start_fake_trx start_trxcon # ... and execute the testsuite again with different cfg @@ -178,7 +177,7 @@ # restart the BSC/BTS and run the testsuite again docker container kill ${BUILD_TAG}-bts start_bsc -start_bts trx 0 +start_bts trx start_testsuite hopping # append ':hopping' to the classnames, # e.g. "classname='BTS_Tests'" => "classname='BTS_Tests:hopping'" -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/21640 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I09e5a8e7c4d28424cd0d004a8bae3cf0ade2d838 Gerrit-Change-Number: 21640 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange