@@ -3658,29 +3658,29 @@ portable_open_port("openssl" = Exe, Args0) ->
36583658 false ->
36593659 AbsPath = os :find_executable (Exe ),
36603660 % % ?CT_LOG("open_port({spawn_executable, ~p}, [stderr_to_stdout,~n {args, \"~s\"}]).",
3661- % % [AbsPath, lists:join($\s, Args0)]),
3661+ % % [AbsPath, lists:join($\s, Args0)]),
36623662 open_port ({spawn_executable , AbsPath },
36633663 [{args , Args0 }, stderr_to_stdout ]);
3664- _ ->
3665- % % I can't get the new windows version of openssl.exe to be stable
3666- % % certain server tests are failing for no reason.
3667- % % This is using "linux" openssl via wslenv
3668-
3669- Translate = fun ([_Drive |" :/" ++ _ ]= Path ) ->
3670- string :trim (os :cmd (" wsl wslpath -u " ++ Path ));
3671- (Arg ) ->
3672- Arg
3673- end ,
3674- Args1 = [Translate (Arg ) || Arg <- Args0 ],
3675- Args = [" /C " , " wsl " , " openssl" | Args1 ] ++ [" 2>&1" ],
3676- Cmd = case erlang :system_info (wordsize ) of
3677- 8 -> os :find_executable (" cmd " );
3678- 4 -> filename :join (os :getenv (" WINDIR" )," sysnative/cmd " )
3664+ _ ->
3665+ % % I can't get the new windows version of openssl.exe to be stable
3666+ % % certain server tests are failing for no reason.
3667+ % % This is using "linux" openssl via wslenv
3668+
3669+ Translate = fun ([_Drive |" :/" ++ _ ]= Path ) ->
3670+ string :trim (os :cmd (" wsl wslpath -u " ++ Path ));
3671+ (Arg ) ->
3672+ Arg
3673+ end ,
3674+ Args1 = [Translate (Arg ) || Arg <- Args0 ],
3675+ Args = [" openssl" | Args1 ] ++ [" 2>&1" ],
3676+ WSL = case erlang :system_info (wordsize ) of
3677+ 8 -> os :find_executable (" wsl " );
3678+ 4 -> filename :join (os :getenv (" WINDIR" )," sysnative/wsl " )
36793679 end ,
3680- ? CT_LOG (" open_port({spawn_executable, ~p }, [stderr_to_stdout,~n {args, \" ~s \" }])." ,
3681- [Cmd , lists : join ( $ \s , Args ) ]),
3682- open_port ({spawn_executable , Cmd },
3683- [{args , Args }, stderr_to_stdout , hide ])
3680+ ? CT_LOG (" open_port({spawn_executable, ~p }, [hide, stderr_to_stdout,~n {args, ~p }])." ,
3681+ [WSL , Args ]),
3682+ open_port ({spawn_executable , WSL },
3683+ [{args , Args }, stderr_to_stdout , hide ])
36843684 end ;
36853685portable_open_port (Exe , Args ) ->
36863686 AbsPath = os :find_executable (Exe ),
0 commit comments