Merge r1556318 from trunk. 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/branches/branch-2@1556319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8f59ebeaa
commit
5c47b8d78a
|
@ -280,6 +280,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