Skip to content

Commit 5342050

Browse files
axiliratorosmith42
authored andcommitted
Revert "ttcn3-bts-test: do not use respawn.sh"
This reverts commit 57f6804. We're observing a lot of turbulence in ttcn3-bts-test due to the clock instability: Shutting down BTS, exit 1, reason: PC clock skew too high Even though it's no longer necessary to respawn osmo-bts-trx, let's restore the respawn.sh to recover from such failures. Related: OS#6794 Change-Id: I1177e9068c49bf31a4010cd21700839dfa8d5050
1 parent 5403b35 commit 5342050

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ttcn3-bts-test/jenkins.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ start_bsc() {
4444
start_bts() {
4545
local variant
4646
variant="$1"
47+
sleep_time_respawn="$2"
4748
echo Starting container with BTS
4849
if [ -z "$variant" ]; then
4950
echo ERROR: You have to specify a BTS variant
@@ -56,10 +57,11 @@ start_bts() {
5657
--ulimit core=-1 \
5758
-v $VOL_BASE_DIR/bts:/data \
5859
-v $VOL_BASE_DIR/unix:/data/unix \
60+
-e "SLEEP_BEFORE_RESPAWN=$sleep_time_respawn" \
5961
--name ${BUILD_TAG}-bts -d \
6062
$DOCKER_ARGS \
6163
$REPO_USER/osmo-bts-$IMAGE_SUFFIX \
62-
/bin/sh -c "osmo-bts-$variant -c /data/osmo-bts.gen.cfg >>/data/osmo-bts.log 2>&1"
64+
/bin/sh -c "/usr/local/bin/respawn.sh osmo-bts-$variant -c /data/osmo-bts.gen.cfg >>/data/osmo-bts.log 2>&1"
6365
}
6466

6567
start_fake_trx() {

0 commit comments

Comments
 (0)