@@ -27,20 +27,21 @@ defmodule ExUnit.Runner do
27
27
end
28
28
29
29
defp normalize_opts ( opts ) do
30
+ opts =
31
+ if opts [ :trace ] do
32
+ Keyword . put_new ( opts , :max_cases , 1 )
33
+ else
34
+ Keyword . put ( opts , :trace , false )
35
+ end
36
+
30
37
{ include , exclude } = ExUnit.Filters . normalize ( opts [ :include ] , opts [ :exclude ] )
31
38
32
- opts = opts
33
- |> Keyword . put ( :exclude , exclude )
34
- |> Keyword . put ( :include , include )
35
- |> Keyword . put_new ( :color , IO.ANSI . terminal? )
36
- |> Keyword . put_new ( :max_cases , :erlang . system_info ( :schedulers_online ) )
37
- |> Keyword . put_new ( :seed , :erlang . now |> elem ( 2 ) )
38
-
39
- if opts [ :trace ] do
40
- Keyword . put_new ( opts , :max_cases , 1 )
41
- else
42
- Keyword . put ( opts , :trace , false )
43
- end
39
+ opts
40
+ |> Keyword . put ( :exclude , exclude )
41
+ |> Keyword . put ( :include , include )
42
+ |> Keyword . put_new ( :color , IO.ANSI . terminal? )
43
+ |> Keyword . put_new ( :max_cases , :erlang . system_info ( :schedulers_online ) )
44
+ |> Keyword . put_new ( :seed , :erlang . now |> elem ( 2 ) )
44
45
end
45
46
46
47
defp loop ( Config [ ] = config ) do
0 commit comments