Fix running coverage tests on cross-targets
This commit is contained in:
committed by
SvyatoslavScherbina
parent
3c548d370e
commit
26defca5c3
@@ -72,7 +72,7 @@ open class CoverageTest : DefaultTask() {
|
||||
fun run() {
|
||||
val suffix = target.family.exeSuffix
|
||||
val pathToBinary = "$outputDir/$binaryName/$target/$binaryName.$suffix"
|
||||
runProcess(localExecutor(project), pathToBinary)
|
||||
runProcess({ project.executor.execute(it) }, pathToBinary)
|
||||
.ensureSuccessful(pathToBinary)
|
||||
exec("llvm-profdata", "merge", profrawFile, "-o", profdataFile)
|
||||
val llvmCovResult = exec("llvm-cov", "export", pathToBinary, "-instr-profile", profdataFile)
|
||||
|
||||
Reference in New Issue
Block a user