diff --git a/testkit/src/mill/testkit/IntegrationTester.scala b/testkit/src/mill/testkit/IntegrationTester.scala index 9774c770629..c60a0a27a91 100644 --- a/testkit/src/mill/testkit/IntegrationTester.scala +++ b/testkit/src/mill/testkit/IntegrationTester.scala @@ -48,8 +48,10 @@ object IntegrationTester { * Mill build being tested. Contains the `build.sc` file, any application code, and * the `out/` folder containing the build output */ - val workspacePath: os.Path = os.temp.dir(deleteOnExit = false) + val workspacePath: os.Path = os.pwd / "out" / "interation-tester-workdir" + os.remove.all(workspacePath) + os.makeDir.all(workspacePath) def debugLog = false /**