Skip to content

Commit 6693915

Browse files
committed
[snmp|test] Change (tmp) connection to standard_io for peer start
1 parent c97b6d2 commit 6693915

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/snmp/test/snmp_test_lib.erl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,13 +3164,18 @@ trap_exit(Flag) ->
31643164
%% Node utility functions
31653165
%%
31663166

3167+
-define(START_OPTIONS(SO), (SO)#{connection => standard_io}).
3168+
%% -define(START_OPTIONS(SO), SO).
3169+
31673170
start_node(Name, Unlink) ->
31683171
Args = ["-s", "snmp_test_sys_monitor", "start", "-s", "global", "sync"],
31693172
%% Note that the 'verbose' option may not exist...
31703173
%% If it does not exist, this (verbose => true) "should" do nothing...
3171-
case ?CT_PEER(#{name => Name,
3172-
args => Args,
3173-
verbose => true}) of
3174+
BaseStartOptions = #{name => Name,
3175+
args => Args,
3176+
verbose => true},
3177+
StartOptions = ?START_OPTIONS(BaseStartOptions),
3178+
case ?CT_PEER(StartOptions) of
31743179
{ok, Peer, Node} ->
31753180
%% Must unlink, otherwise peer will exit before test case
31763181
maybe_unlink(Unlink, Peer),

0 commit comments

Comments
 (0)