Skip to content

Commit 616226a

Browse files
committed
fixup! stdlib: reduce test log on gh
1 parent f06b0dc commit 616226a

13 files changed

+114
-114
lines changed

lib/kernel/test/application_SUITE.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,8 @@ otp_3002(Conf) when is_list(Conf) ->
13821382
%% Create the boot script
13831383
{{KernelVer,StdlibVer}, {LatestDir, LatestName}} =
13841384
create_script_3002("script_3002"),
1385-
ct:pal(?HI_VERBOSITY, "LatestDir = ~p~n", [LatestDir]),
1386-
ct:pal(?HI_VERBOSITY, "LatestName = ~p~n", [LatestName]),
1385+
ct:log(?HI_VERBOSITY, "LatestDir = ~p~n", [LatestDir]),
1386+
ct:log(?HI_VERBOSITY, "LatestName = ~p~n", [LatestName]),
13871387

13881388
case is_real_system(KernelVer, StdlibVer) of
13891389
true ->
@@ -3214,7 +3214,7 @@ start_node_args(Name, Args) ->
32143214

32153215
start_node_boot_3002(Name, Boot) ->
32163216
Pa = filename:dirname(code:which(?MODULE)),
3217-
ct:pal(?HI_VERBOSITY, "start_node_boot ~p~n",
3217+
ct:log(?HI_VERBOSITY, "start_node_boot ~p~n",
32183218
[" -pa " ++ Pa ++ " -env ERL_CRASH_DUMP erl_crash_dump." ++
32193219
atom_to_list(Name) ++ " -boot " ++ Boot ++
32203220
" -sasl dummy \"missing "]),
@@ -3230,7 +3230,7 @@ start_node_boot_config(Name, SysConfigFun, Conf, Boot) ->
32303230

32313231
start_node_boot(Name, Config, Boot) ->
32323232
Pa = filename:dirname(code:which(?MODULE)),
3233-
ct:pal(?HI_VERBOSITY,
3233+
ct:log(?HI_VERBOSITY,
32343234
"start_node_boot ~p~n",[" -pa " ++ Pa ++ " -config " ++ Config ++
32353235
" -boot " ++ atom_to_list(Boot)]),
32363236
test_server:start_node(Name, slave,

lib/kernel/test/disk_log_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,13 +1062,13 @@ mk_bytes(N) when N > 4 ->
10621062
end.
10631063

10641064
get_list(File, Log) ->
1065-
ct:pal(?HI_VERBOSITY, "File ~p~n", [File]),
1065+
ct:log(?HI_VERBOSITY, "File ~p~n", [File]),
10661066
ok = disk_log:sync(Log),
10671067
{ok, B} = file:read_file(File),
10681068
binary_to_list(B).
10691069

10701070
get_list(File, Log, rotate) ->
1071-
ct:pal(?HI_VERBOSITY, "File ~p~n", [File]),
1071+
ct:log(?HI_VERBOSITY, "File ~p~n", [File]),
10721072
ok = disk_log:sync(Log),
10731073
DFile = filename:rootname(File,".gz"),
10741074
decompress_file(File, DFile),

lib/kernel/test/erl_distribution_SUITE.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ hidden_node(DCfg, Config) ->
10621062
ok.
10631063

10641064
hidden_node(DCfg, HArgs, _Config) ->
1065-
ct:pal("--- Hidden argument(s): ~s~n", [HArgs]),
1065+
ct:log("--- Hidden argument(s): ~s~n", [HArgs]),
10661066
{ok, V} = start_node(DCfg, visible_node),
10671067
VMN = start_monitor_nodes_proc(V),
10681068
{ok, H} = start_node(DCfg, hidden_node, HArgs),
@@ -1488,8 +1488,8 @@ monitor_nodes_misc(DCfg, _Config) ->
14881488
{N1, #{connection_id := N1CId}} = lists:keyfind(N1, 1, NodesInfo),
14891489
{N2, #{connection_id := N2CId}} = lists:keyfind(N2, 1, NodesInfo),
14901490

1491-
ct:pal("N1: ~p ~p~n", [N1, N1CId]),
1492-
ct:pal("N2: ~p ~p~n", [N2, N2CId]),
1491+
ct:log("N1: ~p ~p~n", [N1, N1CId]),
1492+
ct:log("N2: ~p ~p~n", [N2, N2CId]),
14931493

14941494
receive {nodeup, N1, #{node_type := visible, connection_id := N1CId}} -> ok end,
14951495
receive {nodeup, N2, #{node_type := hidden, connection_id := N2CId}} -> ok end,

lib/kernel/test/file_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4828,10 +4828,10 @@ run_large_file_test(Config, Run, Name) ->
48284828
{skip, "Failed to query disk space for priv_dir. "
48294829
"Is it on a remote file system?~n"};
48304830
N when N >= 5 * (1 bsl 20) ->
4831-
ct:pal("Free disk: ~w KByte~n", [N]),
4831+
ct:log("Free disk: ~w KByte~n", [N]),
48324832
do_run_large_file_test(Config, Run, Name);
48334833
N when N < 5 * (1 bsl 20) ->
4834-
ct:pal("Free disk: ~w KByte~n", [N]),
4834+
ct:log("Free disk: ~w KByte~n", [N]),
48354835
{skip,"Less than 5 GByte free"}
48364836
end;
48374837
_ ->

lib/kernel/test/gen_tcp_echo_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ echo_packet(Config, SockOpts, EchoFun, EchoOpts) ->
245245
{ok, Echo} =
246246
kernel_test_lib:connect(Config, localhost, EchoPort, SockOpts),
247247

248-
ct:pal("Echo socket: ~w", [Echo]),
248+
ct:log("Echo socket: ~w", [Echo]),
249249

250250
SlowEcho = lists:member(slow_echo, EchoOpts),
251251

lib/kernel/test/gen_tcp_misc_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8087,7 +8087,7 @@ otp_13939(Config) when is_list(Config) ->
80878087
timer:sleep(100),
80888088

80898089
{error, Code} = gen_tcp:send(Accepted, <<0:(10*1024*1024*8)>>),
8090-
ct:pal("gen_tcp:send returned ~p~n", [Code])
8090+
ct:log("gen_tcp:send returned ~p~n", [Code])
80918091
end, [link, monitor]),
80928092

80938093
receive

lib/kernel/test/gen_tcp_socket_SUITE.erl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ testcases(direct) ->
7979
init_per_suite(Config) ->
8080
case socket:is_supported(protocols, tcp) of
8181
true ->
82-
ct:pal("socket:info():~n ~p~n", [socket:info()]),
82+
ct:log("socket:info():~n ~p~n", [socket:info()]),
8383
{ok, BindAddr} = kernel_test_lib:which_local_addr(?DOMAIN),
8484
[{bind_addr, #{ family => ?DOMAIN, addr => BindAddr }}
8585
| Config];
@@ -88,7 +88,7 @@ init_per_suite(Config) ->
8888
end.
8989

9090
end_per_suite(_Config) ->
91-
ct:pal("socket:info():~n ~p~n", [socket:info()]),
91+
ct:log("socket:info():~n ~p~n", [socket:info()]),
9292
ok.
9393

9494

@@ -140,7 +140,7 @@ init_per_group_size(K, Adj, Config) ->
140140
%%
141141
{MeanSize, SizeSuffix} = size_and_suffix(1 bsl K),
142142
{PacketCount, CountSuffix} = size_and_suffix(N),
143-
ct:pal("Packet mean size: ~w ~sByte, packet count: ~w ~s",
143+
ct:log("Packet mean size: ~w ~sByte, packet count: ~w ~s",
144144
[MeanSize, SizeSuffix, PacketCount, CountSuffix]),
145145
%%
146146
[{testdata_server, StopTag},
@@ -262,15 +262,15 @@ run_xfer(
262262
send_loop(A, Iovecs),
263263
ok = gen_tcp:close(A)
264264
catch Class : Reason : Stacktrace ->
265-
ct:pal(
265+
ct:log(
266266
"Sender crash [~w] ~w : ~p~n ~p~n",
267267
[self(), Class, Reason, Stacktrace]),
268268
erlang:raise(Class, Reason, Stacktrace)
269269
end
270270
end, [monitor]),
271271
receive
272272
{Tag, Sockaddr} ->
273-
ct:pal("try connect to ~p"
273+
ct:log("try connect to ~p"
274274
"~n TC: ~p"
275275
"~n", [Sockaddr, TC]),
276276
C = case connect(Params, Sockaddr, TC) of
@@ -288,7 +288,7 @@ run_xfer(
288288
T = erlang:convert_time_unit(T2 - T1, native, millisecond),
289289
report_MByte_s(Params, TC, TotalSize, T)
290290
catch Class : Reason : Stacktrace ->
291-
ct:pal(
291+
ct:log(
292292
"Receiver crash [~w] ~w : ~p~n ~p~n",
293293
[self(), Class, Reason, Stacktrace]),
294294
exit(Sender, receiver_crash),
@@ -697,7 +697,7 @@ recv_loop_active_n(S, Sizes, M, N) ->
697697
%% -------
698698

699699
report(Name, Value, Suffix) ->
700-
ct:pal("### ~s: ~w ~s", [Name, Value, Suffix]),
700+
ct:log("### ~s: ~w ~s", [Name, Value, Suffix]),
701701
ct_event:notify(
702702
#event{
703703
name = benchmark_data,

lib/kernel/test/global_SUITE.erl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ loop_it(N, Config) -> loop_it(N,N, Config).
16781678

16791679
loop_it(0,_, _Config) -> ok;
16801680
loop_it(N,M, Config) ->
1681-
ct:pal(?HI_VERBOSITY, "Round: ~w", [M-N]),
1681+
ct:log(?HI_VERBOSITY, "Round: ~w", [M-N]),
16821682
ring(Config),
16831683
line(Config),
16841684
loop_it(N-1,M, Config).
@@ -3482,7 +3482,7 @@ global_groups_change(Config) ->
34823482
Info1ok ->
34833483
ok;
34843484
_ ->
3485-
ct:pal("Expected: ~p~n"
3485+
ct:log("Expected: ~p~n"
34863486
"Got : ~p~n",
34873487
[Info1ok, Info1]),
34883488
ct:fail({{"could not change the global groups"
@@ -3493,7 +3493,7 @@ global_groups_change(Config) ->
34933493
Info2ok ->
34943494
ok;
34953495
_ ->
3496-
ct:pal("Expected: ~p~n"
3496+
ct:log("Expected: ~p~n"
34973497
"Got : ~p~n",
34983498
[Info2ok, Info2]),
34993499
ct:fail({{"could not change the global groups"
@@ -3504,7 +3504,7 @@ global_groups_change(Config) ->
35043504
Info3ok ->
35053505
ok;
35063506
_ ->
3507-
ct:pal("Expected: ~p~n"
3507+
ct:log("Expected: ~p~n"
35083508
"Got : ~p~n",
35093509
[Info3ok, Info3]),
35103510
ct:fail({{"could not change the global groups"
@@ -3515,7 +3515,7 @@ global_groups_change(Config) ->
35153515
InfoAok ->
35163516
ok;
35173517
_ ->
3518-
ct:pal("Expected: ~p~n"
3518+
ct:log("Expected: ~p~n"
35193519
"Got : ~p~n",
35203520
[InfoAok, InfoA]),
35213521
ct:fail({{"could not change the global groups"
@@ -3526,7 +3526,7 @@ global_groups_change(Config) ->
35263526
InfoBok ->
35273527
ok;
35283528
_ ->
3529-
ct:pal("Expected: ~p~n"
3529+
ct:log("Expected: ~p~n"
35303530
"Got : ~p~n",
35313531
[InfoBok, InfoB]),
35323532
ct:fail({{"could not change the global groups"
@@ -3538,7 +3538,7 @@ global_groups_change(Config) ->
35383538
InfoCok ->
35393539
ok;
35403540
_ ->
3541-
ct:pal("Expected: ~p~n"
3541+
ct:log("Expected: ~p~n"
35423542
"Got : ~p~n",
35433543
[InfoCok, InfoC]),
35443544
ct:fail({{"could not change the global groups"
@@ -3549,7 +3549,7 @@ global_groups_change(Config) ->
35493549
InfoDok ->
35503550
ok;
35513551
_ ->
3552-
ct:pal("Expected: ~p~n"
3552+
ct:log("Expected: ~p~n"
35533553
"Got : ~p~n",
35543554
[InfoDok, InfoD]),
35553555
ct:fail({{"could not change the global groups"
@@ -3560,7 +3560,7 @@ global_groups_change(Config) ->
35603560
InfoEok ->
35613561
ok;
35623562
_ ->
3563-
ct:pal("Expected: ~p~n"
3563+
ct:log("Expected: ~p~n"
35643564
"Got : ~p~n",
35653565
[InfoEok, InfoE]),
35663566
ct:fail({{"could not change the global groups"
@@ -3588,7 +3588,7 @@ gg_wait(Node, Synced, SyncError, NoContact) ->
35883588
receive after 100 -> ok end,
35893589
try
35903590
GGInfo = rpc:call(Node, global_group, info, []),
3591-
ct:pal("GG info: ~p~n", [GGInfo]),
3591+
ct:log("GG info: ~p~n", [GGInfo]),
35923592
case proplists:lookup(synced_nodes, GGInfo) of
35933593
{synced_nodes, Synced} -> ok;
35943594
_ -> throw(wait)
@@ -3903,7 +3903,7 @@ pr_diff(Str, T0, T1) ->
39033903
{_, {H,M,S}} = calendar:time_difference(T0, T1),
39043904
((H*60+M)*60)+S
39053905
end,
3906-
ct:pal(?HI_VERBOSITY,"~13s: ~w (diff: ~w)",[Str, T1, Diff]),
3906+
ct:log(?HI_VERBOSITY,"~13s: ~w (diff: ~w)",[Str, T1, Diff]),
39073907
if
39083908
Diff > 100 ->
39093909
io:format(1,"~s: ** LARGE DIFF ~w~n", [Str, Diff]);
@@ -4922,7 +4922,7 @@ node_tracker_loop(Nodes) ->
49224922
stopped ->
49234923
ok;
49244924
alive ->
4925-
ct:pal("WARNING: The node ~p was not "
4925+
ct:log("WARNING: The node ~p was not "
49264926
"stopped by the test case!", [N])
49274927
end,
49284928
%% We try to kill every node, even those reported as
@@ -4931,13 +4931,13 @@ node_tracker_loop(Nodes) ->
49314931
{badrpc,nodedown} ->
49324932
ok;
49334933
{badrpc,timeout} ->
4934-
ct:pal("WARNING: Failed to kill node: ~p~n"
4934+
ct:log("WARNING: Failed to kill node: ~p~n"
49354935
" Disconnecting it, but it may "
49364936
"still be alive!", [N]),
49374937
erlang:disconnect_node(N),
49384938
ok;
49394939
Unexpected ->
4940-
ct:pal("WARNING: Failed to kill node: ~p~n"
4940+
ct:log("WARNING: Failed to kill node: ~p~n"
49414941
" Got response: ~p~n"
49424942
" Disconnecting it, but it may "
49434943
"still be alive!", [N, Unexpected]),
@@ -4976,7 +4976,7 @@ stop_node_tracker(Config) ->
49764976
NTFailure;
49774977
_ ->
49784978
%% Don't fail due to node tracker...
4979-
ct:pal("WARNING: Node tracker failure: ~p", [NTFailure]),
4979+
ct:log("WARNING: Node tracker failure: ~p", [NTFailure]),
49804980
ok
49814981
end
49824982
end.

0 commit comments

Comments
 (0)