Change in osmo-bsc[master]: test_penalty_timer.ho_vty: show lchan recovery

neels gerrit-no-reply at lists.osmocom.org
Thu Jul 15 09:28:20 UTC 2021


neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/24934 )

Change subject: test_penalty_timer.ho_vty: show lchan recovery
......................................................................

test_penalty_timer.ho_vty: show lchan recovery

Use recently added fake-time 'wait' command to show how the lchan in
LCHAN_ST_WAIT_AFTER_ERROR recovers as soon as timer X3111 has passed.

This prepares for also waiting for the penalty timeout to pass.

Related: SYS#5198
Change-Id: I8f7668b6d08a0dac9e90d2358955f9d5099d39fa
---
M tests/handover/test_penalty_timer.ho_vty
1 file changed, 14 insertions(+), 0 deletions(-)

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



diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty
index 22b9a95..9511b5e 100644
--- a/tests/handover/test_penalty_timer.ho_vty
+++ b/tests/handover/test_penalty_timer.ho_vty
@@ -3,6 +3,12 @@
 # Even though the cell is still better, handover will not be performed
 # due to penalty timer after handover failure
 
+network
+ # set the timeout for LCHAN_ST_WAIT_AFTER_ERROR
+ timer X3111 5
+ # set penalty timeout
+ handover2 penalty-time failed-ho 23
+
 create-n-bts 2
 set-ts-use trx 0 0 states * TCH/F - - - - - -
 meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
@@ -11,7 +17,15 @@
 ho-failed
 # first BTS still services the call:
 expect-ts-use trx 0 0 states * TCH/F - - - - - -
+
 # lchan 1 0 1 0 is in LCHAN_ST_WAIT_AFTER_ERROR because the handover failed:
 expect-ts-use trx 1 0 states * !     - - - - - -
+wait 4
+expect-ts-use trx 1 0 states * !     - - - - - -
+wait 1
+expect-ts-use trx 1 0 states * -     - - - - - -
+# back to UNUSED
+
+# No handover because the penalty timer is still running
 meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
 expect-no-chan

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/24934
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I8f7668b6d08a0dac9e90d2358955f9d5099d39fa
Gerrit-Change-Number: 24934
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210715/b7d2f916/attachment.htm>


More information about the gerrit-log mailing list