We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc0adc2 + 5b08851 commit 3f6e610Copy full SHA for 3f6e610
lib/mix/test/mix/cli_test.exs
@@ -11,10 +11,16 @@ defmodule Mix.CLITest do
11
def project, do: [app: :p, version: "0.1.0"]
12
end
13
"""
14
-
15
- output = System.cmd ~s(MIX_ENV=prod MIX_EXS=custom.exs #{elixir_executable} #{mix_executable}) <>
+
+ System.put_env("MIX_ENV", "prod")
16
+ System.put_env("MIX_EXS", "custom.exs")
17
18
+ output = System.cmd ~s(#{elixir_executable} #{mix_executable}) <>
19
~s( run -e "IO.inspect {Mix.env, System.argv}" -- 1 2 3)
20
21
+ System.delete_env("MIX_ENV")
22
+ System.delete_env("MIX_EXS")
23
24
assert output =~ ~s({:prod, ["1", "2", "3"]})
25
assert output =~ "Compiled lib/a.ex"
26
0 commit comments