Skip to content

Commit 44107f1

Browse files
committed
Precreate the compilation path to avoid mtime races
1 parent 13d3cc0 commit 44107f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mix/test/mix/tasks/compile.app_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ defmodule Mix.Tasks.Compile.AppTest do
6666
test "generates .app file when changes happen" do
6767
in_fixture("no_mixfile", fn ->
6868
Mix.Project.push(MixTest.Case.Sample)
69+
# Pre-create the compilation path to avoid mtime races
70+
File.mkdir_p(Mix.Project.compile_path())
6971

7072
Mix.Tasks.Compile.Elixir.run([])
7173
assert Mix.Tasks.Compile.App.run([]) == {:ok, []}

0 commit comments

Comments
 (0)