From 31d8da6c770d09f2bf070f1436cb2b0a7f7c3653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 10 Dec 2024 15:41:05 +0100 Subject: [PATCH] Avoid mtime races on compile.app_test.exs --- lib/mix/test/mix/tasks/compile.app_test.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mix/test/mix/tasks/compile.app_test.exs b/lib/mix/test/mix/tasks/compile.app_test.exs index 5390925460..943a1876dd 100644 --- a/lib/mix/test/mix/tasks/compile.app_test.exs +++ b/lib/mix/test/mix/tasks/compile.app_test.exs @@ -256,6 +256,8 @@ defmodule Mix.Tasks.Compile.AppTest do test ".app contains description and registered (as required by systools)" do in_fixture("no_mixfile", fn -> Mix.Project.push(MixTest.Case.Sample) + # Pre-create the compilation path to avoid mtime races + File.mkdir_p(Mix.Project.compile_path()) Mix.Tasks.Compile.Elixir.run([]) assert Mix.Tasks.Compile.App.run([]) == {:ok, []}