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 318716a + 004bfc4 commit eee8880Copy full SHA for eee8880
lib/mix/test/mix/cli_test.exs
@@ -5,7 +5,13 @@ defmodule Mix.CLITest do
5
6
test "env" do
7
in_fixture "only_mixfile", fn ->
8
- env = System.cmd %b(MIX_ENV=prod #{elixir_executable} #{mix_executable} run "IO.puts Mix.env")
+ if match? { :win32, _ }, :os.type do
9
+ temp_env = "set MIX_ENV=prod &"
10
+ else # ie. linux
11
+ temp_env = "MIX_ENV=prod"
12
+ end
13
+
14
+ env = System.cmd %b(#{temp_env} #{elixir_executable} #{mix_executable} run -e "IO.puts Mix.env")
15
assert env =~ "prod"
16
end
17
0 commit comments