summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicael Karlberg <bmk@erlang.org>2021-08-06 14:48:01 +0200
committerMicael Karlberg <bmk@erlang.org>2021-08-30 17:56:42 +0200
commit13c94e43ae2c2827d01bbd7b65c32a3a78bf81f8 (patch)
tree7215629b52a7c49b7f04bd18f7180bce7e3fe70a
parent7611b8e730bdcb8bc5f7f48520ec568a51126aa3 (diff)
downloaderlang-13c94e43ae2c2827d01bbd7b65c32a3a78bf81f8.tar.gz
[snmp|test] Print (app) environment at suite init
-rw-r--r--lib/snmp/test/snmp_test_lib.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/snmp/test/snmp_test_lib.erl b/lib/snmp/test/snmp_test_lib.erl
index 10a1bc9202..bbf53f8f3e 100644
--- a/lib/snmp/test/snmp_test_lib.erl
+++ b/lib/snmp/test/snmp_test_lib.erl
@@ -690,6 +690,17 @@ old_is_ipv6_host(Hostname) ->
init_per_suite(Config) ->
+ iprint("snmp environment: "
+ "~n (snmp) app: ~p"
+ "~n (all) init: ~p"
+ "~n (snmp) init: ~p",
+ [application:get_all_env(snmp),
+ init:get_arguments(),
+ case init:get_argument(snmp) of
+ {ok, Args} -> Args;
+ error -> undefined
+ end]),
+
ct:timetrap(minutes(2)),
try analyze_and_print_host_info() of