File 2433-snmp-test-Add-skip.patch of Package erlang
From 086a4ab1f07e24fd48e3ba951019859f50ea8bf1 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Fri, 24 Apr 2020 09:30:54 +0200
Subject: [PATCH 3/6] [snmp|test] Add skip
---
lib/snmp/test/snmp_test_lib.erl | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index 12b0cbd38f..661d85920b 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -626,8 +626,7 @@ init_per_suite(Config) ->
%% We have some crap machines that causes random test case failures
%% for no obvious reason. So, attempt to identify those without actually
%% checking for the host name...
- %% We have two "machines" we are checking for. Both are old installations
- %% running on really slow VMs (the host machines are old and tired).
+
LinuxVersionVerify =
fun(V) when (V > {3,6,11}) ->
false; % OK - No skip
@@ -638,6 +637,13 @@ init_per_suite(Config) ->
_ ->
false
end;
+ (V) when (V =:= {3,4,20}) ->
+ case string:trim(os:cmd("cat /etc/issue")) of
+ "Wind River Linux 5.0.1.0" ++ _ -> % *Old* Wind River => skip
+ true;
+ _ ->
+ false
+ end;
(V) when (V =:= {2,6,32}) ->
case string:trim(os:cmd("cat /etc/issue")) of
"Debian GNU/Linux 6.0 " ++ _ -> % Stone age Debian => Skip
--
2.26.1