YARN-1293. Fixed TestContainerLaunch#testInvalidEnvSyntaxDiagnostics failure caused by non-English system locale. Contributed by Tsuyoshi OZAWA.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1556318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
785c12056c
commit
332c2704d4
|
@ -298,6 +298,9 @@ Release 2.4.0 - UNRELEASED
|
|||
YARN-1409. NonAggregatingLogHandler can throw RejectedExecutionException
|
||||
(Tsuyoshi OZAWA via jlowe)
|
||||
|
||||
YARN-1293. Fixed TestContainerLaunch#testInvalidEnvSyntaxDiagnostics failure
|
||||
caused by non-English system locale. (Tsuyoshi OZAWA via jianhe)
|
||||
|
||||
Release 2.3.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -260,8 +260,12 @@ public class TestContainerLaunch extends BaseContainerManagerTest {
|
|||
fos.flush();
|
||||
fos.close();
|
||||
|
||||
// It is supposed that LANG is set as C.
|
||||
Map<String, String> cmdEnv = new HashMap<String, String>();
|
||||
cmdEnv.put("LANG", "C");
|
||||
Shell.ShellCommandExecutor shexc
|
||||
= new Shell.ShellCommandExecutor(new String[]{shellFile.getAbsolutePath()}, tmpDir);
|
||||
= new Shell.ShellCommandExecutor(new String[]{shellFile.getAbsolutePath()},
|
||||
tmpDir, cmdEnv);
|
||||
String diagnostics = null;
|
||||
try {
|
||||
shexc.execute();
|
||||
|
|
Loading…
Reference in New Issue