File 0136-Fixes-ERL-1335.patch of Package erlang
From a1388077f65b5893f3d476557f66228b2d6a00bd Mon Sep 17 00:00:00 2001
From: Filipe Cristovao <filipe.cristovao@klarna.com>
Date: Thu, 24 Sep 2020 15:04:57 +0200
Subject: [PATCH] Fixes ERL-1335
* When using `release_shell` option, the return is a pid, instead of the usual test return.
* For those cases, just skip that entry and continue result accumulation as usual
---
lib/common_test/src/ct_run.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl
index 37c3e1201b..2704873276 100644
--- a/lib/common_test/src/ct_run.erl
+++ b/lib/common_test/src/ct_run.erl
@@ -1148,7 +1148,8 @@ run_all_specs([], _, _, TotResult) ->
{Ok1,Fail1,{UserSkip1,AutoSkip1}}) ->
{Ok1+Ok,Fail1+Fail,
{UserSkip1+UserSkip,
- AutoSkip1+AutoSkip}}
+ AutoSkip1+AutoSkip}};
+ (Pid, Acc) when is_pid(Pid) -> Acc
end, {0,0,{0,0}}, TotResult1)
end
end;
--
2.26.2