[MPP] Add LC_ALL to CocoaPods IT
^KT-60394
This commit is contained in:
committed by
Space Team
parent
f47ebcf1b7
commit
cd073690fa
+9
-14
@@ -18,6 +18,7 @@ import java.nio.file.Path
|
||||
import kotlin.io.path.exists
|
||||
import kotlin.io.path.name
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertTrue
|
||||
import kotlin.test.fail
|
||||
|
||||
@OsCondition(supportedOn = [OS.MAC], enabledOnCI = [OS.MAC])
|
||||
@@ -256,20 +257,14 @@ private fun TestProject.gradlePodInstall(taskPrefix: String, @Suppress("UNUSED_P
|
||||
private fun TestProject.manualPodInstall(taskPrefix: String, iosAppPath: Path) {
|
||||
build("$taskPrefix:$DUMMY_FRAMEWORK_TASK_NAME", buildOptions = buildOptions)
|
||||
|
||||
val command = listOf("env", "pod", "install")
|
||||
val result = runProcess(
|
||||
cmd = command,
|
||||
environmentVariables = environmentVariables.environmentalVariables,
|
||||
workingDir = iosAppPath.toFile(),
|
||||
)
|
||||
val environmentalVariables = environmentVariables.environmentalVariables.toMutableMap()
|
||||
environmentalVariables.getOrPut("LC_ALL") { "en_US.UTF-8" }
|
||||
|
||||
if (result.exitCode != 0) {
|
||||
fail(
|
||||
"""
|
||||
|${command.joinToString(" ")} failed with exist code ${result.exitCode}
|
||||
|stdout: ${result.output}
|
||||
|stderr: ${result.stdErr}
|
||||
""".trimMargin()
|
||||
assertProcessRunResult(
|
||||
runProcess(
|
||||
cmd = listOf("env", "pod", "install"),
|
||||
environmentVariables = environmentalVariables,
|
||||
workingDir = iosAppPath.toFile(),
|
||||
)
|
||||
}
|
||||
) { assertTrue(isSuccessful) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user