summaryrefslogtreecommitdiffstats
path: root/hlr/HLR_Tests.ttcn
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-07-06 23:11:32 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2018-07-24 14:19:42 +0200
commitafce86630ccc0d9a3c0f566fa1c935587bbe3770 (patch)
tree5eadbb8c5508a19831a987d6e55739f19e7f11ba /hlr/HLR_Tests.ttcn
parente4ff537f9baacc94242407041f30de1994316622 (diff)
Stop tests after failures
Call mtc.stop after setverdict(fail), add reasons to most failures and fail with verdict error for internal errors. Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
Diffstat (limited to 'hlr/HLR_Tests.ttcn')
-rw-r--r--hlr/HLR_Tests.ttcn12
1 files changed, 6 insertions, 6 deletions
diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn
index 51d45ba..753f92e 100644
--- a/hlr/HLR_Tests.ttcn
+++ b/hlr/HLR_Tests.ttcn
@@ -91,7 +91,7 @@ function f_init_vty() runs on test_CT {
private altstep as_Tguard() runs on test_CT {
[] g_Tguard.timeout {
setverdict(fail, "g_Tguard timeout");
- self.stop;
+ mtc.stop;
}
}
@@ -131,7 +131,7 @@ function f_init_gsup(charstring id, boolean legacy) runs on test_CT {
[legacy] GSUP.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) { }
[] T.timeout {
setverdict(fail, "No connection to GSUP Port");
- self.stop;
+ mtc.stop;
}
}
}
@@ -270,7 +270,7 @@ function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charst
var charstring ret := f_vty_transceive_ret(pt, cmd);
if (not match(ret, exp_ret)) {
setverdict(fail, "Non-matching VTY response: ", ret);
- self.stop;
+ mtc.stop;
}
}
@@ -359,7 +359,7 @@ runs on HLR_ConnHdlr return GSUP_PDU {
[] GSUP.receive { repeat; }
[] T.timeout {
setverdict(fail, "Timeout waiting for SAI response");
- self.stop;
+ mtc.stop;
}
}
return ret;
@@ -405,7 +405,7 @@ runs on HLR_ConnHdlr return GSUP_PDU {
[] GSUP.receive { repeat; }
[] T.timeout {
setverdict(fail, "Timeout waiting for UL response");
- self.stop;
+ mtc.stop;
}
}
return ret;
@@ -443,7 +443,7 @@ runs on HLR_ConnHdlr return GSUP_PDU {
[] GSUP.receive { repeat; }
[] T.timeout {
setverdict(fail, "Timeout waiting for PURGE response");
- self.stop;
+ mtc.stop;
}
}
return ret;