[MERGED] osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Harald Welte has submitted this change and it was merged. Change subject: bsc: fix TC_paging_imsi_a_reset .. bsc: fix TC_paging_imsi_a_reset The testcase TC_paging_imsi_a_reset sends a paging request that causes pagings on all cells. Then it performs a BSSMAP reset and checks if the paging has stopped. In order to be sure that paging requests from before the reset procedure are not mistakenly detected as after-reset-pagings the RSL queue is cleared. However this is only done for IPA_RSL[0], which means IPA_RSL[1] and IPA_RSL[2] still contain old paging requests, which lets the test fail. - Clear IPA_RSL[1] and IPA_RSL[2] as well. Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 --- M bsc/BSC_Tests.ttcn 1 file changed, 3 insertions(+), 1 deletion(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 52ecc1e..d94faad 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -1201,7 +1201,9 @@ } /* Clear the queue, it might still contain stuff like BCCH FILLING */ - IPA_RSL[0].clear; + for (var integer i := 0; i < sizeof(IPA_RSL); i := i+1) { + IPA_RSL[i].clear; + } /* Wait for 3 seconds if any more PAGING CMD are received on RSL */ T.start; -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 3 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexterGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter
osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 2 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexterGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter Gerrit-HasComments: No
osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Patch Set 1: I have changed it now, but the altstep will still cover only three BTSs. Looks like there is no way to do this in a for-loop as well... -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexterGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter Gerrit-HasComments: No
[PATCH] osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/6855 to look at the new patch set (#2). bsc: fix TC_paging_imsi_a_reset The testcase TC_paging_imsi_a_reset sends a paging request that causes pagings on all cells. Then it performs a BSSMAP reset and checks if the paging has stopped. In order to be sure that paging requests from before the reset procedure are not mistakenly detected as after-reset-pagings the RSL queue is cleared. However this is only done for IPA_RSL[0], which means IPA_RSL[1] and IPA_RSL[2] still contain old paging requests, which lets the test fail. - Clear IPA_RSL[1] and IPA_RSL[2] as well. Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 --- M bsc/BSC_Tests.ttcn 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/6855/2 diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 347380a..7ba053a 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -1198,7 +1198,9 @@ } /* Clear the queue, it might still contain stuff like BCCH FILLING */ - IPA_RSL[0].clear; + for (var integer i := 0; i < sizeof(IPA_RSL); i := i+1) { + IPA_RSL[i].clear; + } /* Wait for 3 seconds if any more PAGING CMD are received on RSL */ T.start; -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 2 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexterGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder
osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Patch Set 1: Nice catch! n order to make the patch more future-proof, it would be better to iterate over the array using "for (var integer i := 0; i < sizeof(IPA_RSL); i := i+1)". This way, even if we have more than 3 BTSs in the future, the code will remain to work. -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexterGerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder Gerrit-HasComments: No
[PATCH] osmo-ttcn3-hacks[master]: bsc: fix TC_paging_imsi_a_reset
Review at https://gerrit.osmocom.org/6855 bsc: fix TC_paging_imsi_a_reset The testcase TC_paging_imsi_a_reset sends a paging request that causes pagings on all cells. Then it performs a BSSMAP reset and checks if the paging has stopped. In order to be sure that paging requests from before the reset procedure are not mistakenly detected as after-reset-pagings the RSL queue is cleared. However this is only done for IPA_RSL[0], which means IPA_RSL[1] and IPA_RSL[2] still contain old paging requests, which lets the test fail. - Clear IPA_RSL[1] and IPA_RSL[2] as well. Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 --- M bsc/BSC_Tests.ttcn 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/6855/1 diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 347380a..391a793 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -1199,6 +1199,8 @@ /* Clear the queue, it might still contain stuff like BCCH FILLING */ IPA_RSL[0].clear; + IPA_RSL[1].clear; + IPA_RSL[2].clear; /* Wait for 3 seconds if any more PAGING CMD are received on RSL */ T.start; -- To view, visit https://gerrit.osmocom.org/6855 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If0cdc0325fd0e1dcf3e4ce52e4de27adb4d9cf48 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: dexter