Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
4682-Debug-help-in-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4682-Debug-help-in-tests.patch of Package erlang
From cb52af28fe8241449888075a0fce12f1dea1bf21 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson <dgud@erlang.org> Date: Wed, 2 Feb 2022 15:08:51 +0100 Subject: [PATCH 2/4] Debug help in tests Format output so that it easier to cut&paste when debugging. --- lib/ssl/test/ssl_test_lib.erl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index 2c4fa77b33..94b4261be2 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -949,7 +949,7 @@ run_client(Opts) -> Options = proplists:get_value(options, Opts), ContOpts = proplists:get_value(continue_options, Opts, []), ct:log("~p:~p~n~p:connect(~p, ~p)@~p~n", [?MODULE,?LINE, Transport, Host, Port, Node]), - ct:log("SSLOpts: ~p", [format_options(Options)]), + ct:log("SSLOpts:~n ~0.p", [format_options(Options)]), case ContOpts of [] -> client_loop(Node, Host, Port, Pid, Transport, Options, Opts); @@ -3323,8 +3323,8 @@ portable_open_port("openssl" = Exe, Args0) -> case IsWindows andalso os:getenv("WSLENV") of false -> AbsPath = os:find_executable(Exe), - ct:pal("open_port({spawn_executable, ~p}, [{args, ~p}, stderr_to_stdout]).", - [AbsPath, Args0]), + ct:pal("open_port({spawn_executable, ~p}, [stderr_to_stdout,~n {args, \"~s\"}]).", + [AbsPath, lists:join($\s, Args0)]), open_port({spawn_executable, AbsPath}, [{args, Args0}, stderr_to_stdout]); _ -> @@ -3340,7 +3340,8 @@ portable_open_port("openssl" = Exe, Args0) -> Args1 = [Translate(Arg) || Arg <- Args0], Args = ["/C","wsl","openssl"| Args1] ++ ["2>&1"], Cmd = os:find_executable("cmd"), - ct:pal("open_port({spawn_executable, ~p}, [{args, ~p}, stderr_to_stdout]).", [Cmd,Args]), + ct:pal("open_port({spawn_executable, ~p}, [stderr_to_stdout,~n {args, \"~s\"}]).", + [Cmd, lists:join($\s, Args0)]), open_port({spawn_executable, Cmd}, [{args, Args}, stderr_to_stdout, hide]) end; -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor