HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot. (Jonathan Eagles via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1202540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2011-11-16 06:29:09 +00:00
parent c56e051961
commit 649080131c
2 changed files with 4 additions and 1 deletions

View File

@ -114,6 +114,9 @@ Release 0.23.1 - Unreleased
BUG FIXES BUG FIXES
HADOOP-7811. TestUserGroupInformation#testGetServerSideGroups test fails in chroot.
(Jonathan Eagles via mahadev)
Release 0.23.0 - 2011-11-01 Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -99,7 +99,7 @@ public class TestUserGroupInformation {
(new InputStreamReader(pp.getInputStream())); (new InputStreamReader(pp.getInputStream()));
String userName = br.readLine().trim(); String userName = br.readLine().trim();
// get the groups // get the groups
pp = Runtime.getRuntime().exec("id -Gn"); pp = Runtime.getRuntime().exec("id -Gn " + userName);
br = new BufferedReader(new InputStreamReader(pp.getInputStream())); br = new BufferedReader(new InputStreamReader(pp.getInputStream()));
String line = br.readLine(); String line = br.readLine();
System.out.println(userName + ":" + line); System.out.println(userName + ":" + line);