diff options
author | Filipe Cristovao <filipe.cristovao@klarna.com> | 2020-09-24 15:04:57 +0200 |
---|---|---|
committer | Filipe Cristovao <filipe.cristovao@klarna.com> | 2020-09-24 15:04:57 +0200 |
commit | a1388077f65b5893f3d476557f66228b2d6a00bd (patch) | |
tree | 57197f207b89ae8c98f08b0dcffb9938ce3660f9 | |
parent | 06fa06ead33730ac71c4bad457bd82a7c6c8bf97 (diff) | |
download | erlang-a1388077f65b5893f3d476557f66228b2d6a00bd.tar.gz |
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
-rw-r--r-- | lib/common_test/src/ct_run.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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; |