summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-06-12 13:48:26 +0200
committerAlexander Couzens <lynxis@fe80.eu>2018-06-12 13:51:14 +0200
commit1e6d99054092eabb1678562973a67600c64ec8bd (patch)
tree0880247bdd19b768d339ceef04b6973cfae8bd00 /library
parent98aa59e0643a31acb6eabed4146e7ad7709823bf (diff)
Osmocom_VTY_Functions: introduce f_vty_transceive_not_match()
fails when vty response match template. Change-Id: I489d2a47cd4690dcfc3f1042c332014593d082a2
Diffstat (limited to 'library')
-rw-r--r--library/Osmocom_VTY_Functions.ttcn8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index f118865..c7f4441 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -136,5 +136,13 @@ function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charst
}
}
+function f_vty_transceive_not_match(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) {
+ var charstring ret := f_vty_transceive_ret(pt, cmd);
+ if (match(ret, exp_ret)) {
+ setverdict(fail, "Unexpected matching VTY response: ", ret);
+ self.stop;
+ }
+}
+
}