File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ defmodule Mix.Tasks.Cmd do
29
29
status -> exit ( status )
30
30
end
31
31
end
32
+
33
+ Mix.Task . reenable ( "cmd" )
32
34
end
33
35
34
36
defp parse_apps ( args , apps ) do
Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ Code.require_file("../../test_helper.exs", __DIR__)
3
3
defmodule Mix.Tasks.CmdTest do
4
4
use MixTest.Case
5
5
6
+ test "can be called multiple times" do
7
+ nl = os_newline ( )
8
+ Mix.Task . run ( "cmd" , [ "echo" , "hello" ] )
9
+ assert_received { :mix_shell , :run , [ "hello" <> ^ nl ] }
10
+ Mix.Task . run ( "cmd" , [ "echo" , "hello" ] )
11
+ assert_received { :mix_shell , :run , [ "hello" <> ^ nl ] }
12
+ end
13
+
6
14
test "runs the command for each app" do
7
15
in_fixture "umbrella_dep/deps/umbrella" , fn ->
8
16
Mix.Project . in_project ( :umbrella , "." , fn _ ->
You can’t perform that action at this time.
0 commit comments