Skip to content

Commit e57ede3

Browse files
bgsmetafacebook-github-bot
authored andcommitted
Fix error formatting in test shell
Summary: * Not all patterns seem to captured in test shell error printing. We make sure errors of the pattern `{error, {Reason, Stacktrace}}` are matched and printed accurately. Reviewed By: jcpetruzza Differential Revision: D70783941 fbshipit-source-id: 423c2fe8b85374a8e8e84109db0b15be91e1b03f
1 parent af3f5e8 commit e57ede3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

erlang/common_test/test_exec/src/ct_daemon_printer.erl

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ print_result(Name, {error, {_TestId, {timetrap, TimeoutValue}}}) ->
5959
io:format("~ts ~ts~n", [?CROSS_MARK, Name]),
6060
io:format("Test timed out after ~p ms~n", [TimeoutValue]),
6161
fail;
62+
print_result(Name, {error, {_TestId, {Reason, Stacktrace}}}) ->
63+
io:format("~ts ~ts~n", [?CROSS_MARK, Name]),
64+
print_error(Name, error, Reason, Stacktrace);
6265
print_result(Name, Unstructured) ->
6366
io:format("~ts ~ts~n", [?CROSS_MARK, Name]),
6467
io:format("unable to format failure reason, please report.~n"),

0 commit comments

Comments
 (0)