File 2409-snmp-test-Added-another-linux-skip-condition.patch of Package erlang
From 9ca620a59c1a425d56a9975fff2059fd41cf9507 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Thu, 16 Apr 2020 10:32:00 +0200
Subject: [PATCH 09/14] [snmp|test] Added another linux skip condition
---
lib/snmp/test/snmp_manager_SUITE.erl | 4 ++--
lib/snmp/test/snmp_test_lib.erl | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/lib/snmp/test/snmp_manager_SUITE.erl b/lib/snmp/test/snmp_manager_SUITE.erl
index 30cd88d1e9..4b16dc5d6e 100644
--- a/lib/snmp/test/snmp_manager_SUITE.erl
+++ b/lib/snmp/test/snmp_manager_SUITE.erl
@@ -4797,8 +4797,8 @@ do_inform_swarm(Config) ->
{{inform2_tag1, N}, Collector},
"standard inform",
[]),
- %% Sleep some [(N div 10)*100 ms]
- %% every tenth notification
+ %% Sleep 1000 ms every 100th notif
+ %% Sleep 100 ms every 10th notif
if
N rem 100 == 0 ->
Sleep = 1000,
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index fcb5d3c2e5..8d0f98f9d8 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -647,6 +647,14 @@ init_per_suite(Config) ->
end;
(V) when (V > {2,6,24}) ->
false; % OK - No skip
+ (V) when (V =:= {2,6,10}) ->
+ case string:trim(os:cmd("cat /etc/issue")) of
+ "MontaVista" ++ _ -> % Stone age MontaVista => Skip
+ %% The real problem is that the machine is *very* slow
+ true;
+ _ ->
+ false
+ end;
(_) ->
%% We are specifically checking for
%% a *really* old gento...
--
2.16.4