Skip to content

Commit f83a950

Browse files
authored
Forward port "Fix hang on mill.integration.invalidation[selective-execution]" (#4572)
Forward port of #4571
1 parent a5060fe commit f83a950

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scalalib/src/mill/scalalib/TestModuleUtil.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ private[scalalib] object TestModuleUtil {
7070
env = forkEnv ++ resourceEnv,
7171
mainArgs = Seq(testRunnerClasspathArg, argsFile.toString),
7272
cwd = if (testSandboxWorkingDir) sandbox else forkWorkingDir,
73-
cpPassingJarPath = Some(os.temp(prefix = "run-", suffix = ".jar", deleteOnExit = false)),
73+
cpPassingJarPath = Option.when(useArgsFile)(
74+
os.temp(prefix = "run-", suffix = ".jar", deleteOnExit = false)
75+
),
7476
javaHome = javaHome,
7577
stdin = os.Inherit,
7678
stdout = os.Inherit

0 commit comments

Comments
 (0)