aboutsummaryrefslogtreecommitdiffstats
path: root/library/L1CTL_PortType.ttcn
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-08-30 17:03:50 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-08-30 17:06:48 +0200
commit02585905fb7629b9d0ceaff4cc330c847bc1e394 (patch)
tree800778b94f38ddb7bfcb27bac2d440afe48c41c1 /library/L1CTL_PortType.ttcn
parentf3c1b41fe42b4f0fa5464f3a992ea61bebdb0a58 (diff)
show return code when sending L1CTL_FBSB_REQ fails
Provide a little bit more information when a BTS test fails due to L1CTL FBSB failure. Example output: Test case TC_si_sched_default finished. Verdict: fail reason: \ FBSB Failed with non-zero return code 255 Change-Id: I5e8f23a2615b64bdf3167d486ba808c93f0f4b23
Diffstat (limited to 'library/L1CTL_PortType.ttcn')
-rw-r--r--library/L1CTL_PortType.ttcn5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/L1CTL_PortType.ttcn b/library/L1CTL_PortType.ttcn
index 14a059c2..8e03c02e 100644
--- a/library/L1CTL_PortType.ttcn
+++ b/library/L1CTL_PortType.ttcn
@@ -35,12 +35,13 @@ module L1CTL_PortType {
function f_L1CTL_FBSB(L1CTL_PT pt, Arfcn arfcn, L1ctlCcchMode ccch_mode := CCCH_MODE_COMBINED, integer rxlev_exp := 57) {
timer T := 15.0;
for (var integer i := 0; i < 10; i := i+1) {
+ var L1ctlDlMessage dl;
pt.send(ts_L1CTL_FBSB_REQ(arfcn, valueof(t_L1CTL_FBSB_F_ALL), 0, ccch_mode, rxlev_exp));
T.start
alt {
[] pt.receive(tr_L1CTL_FBSB_CONF(0)) { return; };
- [i >= 9] pt.receive(tr_L1CTL_FBSB_CONF(?)) {
- setverdict(fail, "FBSB Failed with non-zero return code");
+ [i >= 9] pt.receive(tr_L1CTL_FBSB_CONF(?)) -> value dl {
+ setverdict(fail, "FBSB Failed with non-zero return code ", dl.payload.fbsb_conf.result);
mtc.stop;
};
[] pt.receive(tr_L1CTL_FBSB_CONF(?)) {