[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.exists
|
||||||
import kotlin.io.path.name
|
import kotlin.io.path.name
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
import kotlin.test.assertTrue
|
||||||
import kotlin.test.fail
|
import kotlin.test.fail
|
||||||
|
|
||||||
@OsCondition(supportedOn = [OS.MAC], enabledOnCI = [OS.MAC])
|
@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) {
|
private fun TestProject.manualPodInstall(taskPrefix: String, iosAppPath: Path) {
|
||||||
build("$taskPrefix:$DUMMY_FRAMEWORK_TASK_NAME", buildOptions = buildOptions)
|
build("$taskPrefix:$DUMMY_FRAMEWORK_TASK_NAME", buildOptions = buildOptions)
|
||||||
|
|
||||||
val command = listOf("env", "pod", "install")
|
val environmentalVariables = environmentVariables.environmentalVariables.toMutableMap()
|
||||||
val result = runProcess(
|
environmentalVariables.getOrPut("LC_ALL") { "en_US.UTF-8" }
|
||||||
cmd = command,
|
|
||||||
environmentVariables = environmentVariables.environmentalVariables,
|
|
||||||
workingDir = iosAppPath.toFile(),
|
|
||||||
)
|
|
||||||
|
|
||||||
if (result.exitCode != 0) {
|
assertProcessRunResult(
|
||||||
fail(
|
runProcess(
|
||||||
"""
|
cmd = listOf("env", "pod", "install"),
|
||||||
|${command.joinToString(" ")} failed with exist code ${result.exitCode}
|
environmentVariables = environmentalVariables,
|
||||||
|stdout: ${result.output}
|
workingDir = iosAppPath.toFile(),
|
||||||
|stderr: ${result.stdErr}
|
|
||||||
""".trimMargin()
|
|
||||||
)
|
)
|
||||||
}
|
) { assertTrue(isSuccessful) }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user