Use workDir to fix bitcode-build-output that leaves a.out

This commit is contained in:
Pavel Punegov
2019-12-16 16:15:15 +03:00
committed by Pavel Punegov
parent c7499e281d
commit 376d9eee20
@@ -162,7 +162,10 @@ open class FrameworkTest : DefaultTask(), KonanTestExecutable {
private fun runTest(executorService: ExecutorService, testExecutable: Path, args: List<String> = emptyList()) {
val (stdOut, stdErr, exitCode) = runProcess(
executor = executorService.add(Action { it.environment = buildEnvironment() })::execute,
executor = executorService.add(Action {
it.environment = buildEnvironment()
it.workingDir = Paths.get(testOutput).toFile()
})::execute,
executable = testExecutable.toString(),
args = args)