Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Commit 85a6a0c

Browse files
committed
Fix classic client environment in tests (#330)
1 parent ec53386 commit 85a6a0c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

client/backend/src/test/kotlin/com/microsoft/tfs/tests/ClassicClientUtils.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ private fun executeClient(directory: Path, vararg arguments: String) {
4444
val loginArgument = "-login:${IntegrationTestUtils.user},${IntegrationTestUtils.pass}"
4545
val process = ProcessBuilder(IntegrationTestUtils.tfExe, loginArgument, *arguments)
4646
.directory(directory.toFile())
47-
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
48-
.redirectError(ProcessBuilder.Redirect.INHERIT)
47+
.apply {
48+
environment().also {
49+
it["TF_NOTELEMETRY"] = "TRUE"
50+
it["TF_ADDITIONAL_JAVA_ARGS"] = "-Duser.country=US -Duser.language=en"
51+
}
52+
}
53+
.inheritIO()
4954
.start()
5055
val exitSuccess = process.waitFor(1L, TimeUnit.MINUTES)
5156
if (!exitSuccess) {

0 commit comments

Comments
 (0)