pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39765?usp=email )


Change subject: stp: STP_Tests_IPA.TC_tmt_loadshare_sls: Fix test expectancies
......................................................................

stp: STP_Tests_IPA.TC_tmt_loadshare_sls: Fix test expectancies

Change-Id: I68856e11a92b707eb11ab4813390e6faf3c54b69
---
M stp/STP_Tests_IPA.ttcn
1 file changed, 8 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/65/39765/1

diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn
index 088b280..693a336 100644
--- a/stp/STP_Tests_IPA.ttcn
+++ b/stp/STP_Tests_IPA.ttcn
@@ -304,9 +304,14 @@
                }
        }

-       /* All traffic should have still be sent to the first receiver, since 
OPC+SLS cannot change in IPA ASPs. */
-       if (num_rx_1 != iter_per_asp and num_rx_2 != 0) {
-               Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Expected 
all traffic through 1st receiver!");
+       /* All traffic should not still be sent to the same receiver, since
+        * OPC+SLS cannot change in IPA ASPs.
+        * However, depending on how the SLS seed tables where allocated, it can
+        * be that STP was routing through Alternative Route and now that the
+        * 2nd receiver is up it is now routing to it (Normal Route). Account
+        * for both scenarios. */
+       if (not ((num_rx_1 == iter_per_asp and num_rx_2 == 0) or (num_rx_2 == 
iter_per_asp and num_rx_1 == 0))) {
+               Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Expected 
all traffic through same receiver!");
        }



--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39765?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I68856e11a92b707eb11ab4813390e6faf3c54b69
Gerrit-Change-Number: 39765
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to