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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22741 ) Change subject: StatsD_Checker: Check f_IPL4_listen result ...................................................................... StatsD_Checker: Check f_IPL4_listen result Change-Id: Ief4e30ae92b8567dd9618064220f9f50df2d0de0 --- M library/StatsD_Checker.ttcn 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/41/22741/1 diff --git a/library/StatsD_Checker.ttcn b/library/StatsD_Checker.ttcn index d287b74..6e16ed4 100644 --- a/library/StatsD_Checker.ttcn +++ b/library/StatsD_Checker.ttcn @@ -25,6 +25,8 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ +import from Socket_API_Definitions all; + import from StatsD_Types all; import from StatsD_CodecPort all; import from StatsD_CodecPort_CtrlFunct all; @@ -90,6 +92,7 @@ function main(charstring statsd_host, integer statsd_port) runs on StatsD_Checker_CT { var StatsD_ConnHdlr vc_conn; var StatsDExpects expects; + var Result res; while (not mp_enable_stats) { log("StatsD checker disabled by modulepar"); @@ -97,7 +100,11 @@ } map(self:STATS, system:STATS); - StatsD_CodecPort_CtrlFunct.f_IPL4_listen(STATS, statsd_host, statsd_port, { udp := {} }, {}); + res := StatsD_CodecPort_CtrlFunct.f_IPL4_listen(STATS, statsd_host, statsd_port, { udp := {} }, {}); + if (not ispresent(res.connId)) { + setverdict(fail, "Could not bind StatsD socket, check your configuration"); + mtc.stop; + } /* Connect to VTY and reset stats */ map(self:STATSVTY, system:STATSVTY); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22741 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ief4e30ae92b8567dd9618064220f9f50df2d0de0 Gerrit-Change-Number: 22741 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210205/375a5835/attachment.htm>