aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-07-14 00:48:30 +0200
committerneels <nhofmeyr@sysmocom.de>2021-07-15 09:28:18 +0000
commitcc845feb12571d9b935fffc571a1f85fe49eeb6c (patch)
tree7bb9dfb7b5a546a3459f58b4448dcdd71c16d677 /tests/handover
parentb55ff05eb868a3e9ffb241d36d198969067dc2e0 (diff)
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
Diffstat (limited to 'tests/handover')
-rw-r--r--tests/handover/test_penalty_timer.ho_vty14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty
index 22b9a9529..9511b5e32 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 @@ expect-ho-cmd lchan 0 0 1 0
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