Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7663-snmp-test-More-not-in-time-window-detectio...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7663-snmp-test-More-not-in-time-window-detection-adjustme.patch of Package erlang
From d5296049d4edaae88a4a5473048b5fa85527a6ad Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Tue, 18 Jan 2022 20:27:53 +0100 Subject: [PATCH 03/12] [snmp|test] More not-in-time-window detection adjustments --- lib/snmp/test/snmp_agent_test_lib.erl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/snmp/test/snmp_agent_test_lib.erl b/lib/snmp/test/snmp_agent_test_lib.erl index 69dcf52590..e82f374a8d 100644 --- a/lib/snmp/test/snmp_agent_test_lib.erl +++ b/lib/snmp/test/snmp_agent_test_lib.erl @@ -569,10 +569,10 @@ tc_run(Mod, Func, Args, Opts) -> ?SKIP(Reason); throw:{error, Reason} -> - tc_run_skip_sheck(Mod, Func, Args, Reason, throw); + tc_run_skip_check(Mod, Func, Args, Reason, throw); exit:Reason -> - tc_run_skip_sheck(Mod, Func, Args, Reason, exit) + tc_run_skip_check(Mod, Func, Args, Reason, exit) end; {error, Reason} -> @@ -588,11 +588,18 @@ tc_run(Mod, Func, Args, Opts) -> ?line ?FAIL({mgr_start_failure, Err}) end. +%% We have some crap machines that generate this every now and then +%% (thay miss the window with 1 or 2 ms). If also detected by the +%% test manager, we get this and can skip. +tc_run_skip_check(_Mod, _Func, _Args, + {securityError, usmStatsNotInTimeWindows} = Reason, + _Cat) -> + ?SKIP([{reason, Reason}]); %% We have hosts (mostly *very* slooow VMs) that %% can timeout anything. Since we are basically %% testing communication, we therefore must check %% for system events at every failure. Grrr! -tc_run_skip_sheck(Mod, Func, Args, Reason, Cat) -> +tc_run_skip_check(Mod, Func, Args, Reason, Cat) -> SysEvs = snmp_test_global_sys_monitor:events(), (catch snmp_test_mgr:stop()), if -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor