Change in osmo-ttcn3-hacks[master]: Osmocom_VTY_Functions: introduce f_vty_transceive_not_match()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jun 13 10:28:42 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9558 )

Change subject: Osmocom_VTY_Functions: introduce f_vty_transceive_not_match()
......................................................................

Osmocom_VTY_Functions: introduce f_vty_transceive_not_match()

fails when vty response match template.

Change-Id: I489d2a47cd4690dcfc3f1042c332014593d082a2
---
M library/Osmocom_VTY_Functions.ttcn
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



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_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;
+	}
+}
+
 
 }

-- 
To view, visit https://gerrit.osmocom.org/9558
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I489d2a47cd4690dcfc3f1042c332014593d082a2
Gerrit-Change-Number: 9558
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180613/5a6fc27b/attachment.htm>


More information about the gerrit-log mailing list