tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject git commit: TEZ-232. Fix broken test in TestMRHelpers. (hitesh)
Date Fri, 14 Jun 2013 01:13:11 GMT
Updated Branches:
  refs/heads/master 97375b2b3 -> 89754798f


TEZ-232. Fix broken test in TestMRHelpers. (hitesh)


Project: http://git-wip-us.apache.org/repos/asf/incubator-tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tez/commit/89754798
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tez/tree/89754798
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tez/diff/89754798

Branch: refs/heads/master
Commit: 89754798f6a60a2bef6cf20c78ad7d3093d6eee8
Parents: 97375b2
Author: Hitesh Shah <hitesh@apache.org>
Authored: Thu Jun 13 18:12:54 2013 -0700
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Thu Jun 13 18:13:07 2013 -0700

----------------------------------------------------------------------
 .../apache/tez/mapreduce/hadoop/TestMRHelpers.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tez/blob/89754798/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/hadoop/TestMRHelpers.java
----------------------------------------------------------------------
diff --git a/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/hadoop/TestMRHelpers.java
b/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/hadoop/TestMRHelpers.java
index 0b03fd3..9158280 100644
--- a/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/hadoop/TestMRHelpers.java
+++ b/tez-mapreduce/src/test/java/org/apache/tez/mapreduce/hadoop/TestMRHelpers.java
@@ -47,6 +47,7 @@ import org.apache.hadoop.yarn.api.records.LocalResourceType;
 import org.apache.hadoop.yarn.api.records.LocalResourceVisibility;
 import org.apache.hadoop.yarn.conf.YarnConfiguration;
 import org.apache.tez.dag.api.VertexLocationHint.TaskLocationHint;
+import org.apache.zookeeper.Environment.Entry;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -326,18 +327,17 @@ public class TestMRHelpers {
   private void testCommonEnvSettingsForMRTasks(Map<String, String> env) {
     Assert.assertTrue(env.containsKey("foo"));
     Assert.assertTrue(env.containsKey("bar"));
-    Assert.assertTrue(env.containsKey(Environment.CLASSPATH.$()));
-    Assert.assertTrue(env.containsKey(Environment.LD_LIBRARY_PATH.$()));
-    Assert.assertTrue(env.containsKey(Environment.SHELL.$()));
+    Assert.assertTrue(env.containsKey(Environment.CLASSPATH.name()));
+    Assert.assertTrue(env.containsKey(Environment.LD_LIBRARY_PATH.name()));
+    Assert.assertTrue(env.containsKey(Environment.SHELL.name()));
     Assert.assertTrue(env.containsKey("HADOOP_ROOT_LOGGER"));
     for (String val : YarnConfiguration.DEFAULT_YARN_APPLICATION_CLASSPATH) {
-      Assert.assertTrue(env.get(Environment.CLASSPATH.$()).contains(val));
+      Assert.assertTrue(env.get(Environment.CLASSPATH.name()).contains(val));
     }
-
     Assert.assertTrue(0 ==
-        env.get(Environment.CLASSPATH.$()).indexOf(Environment.PWD.$()));
-
+        env.get(Environment.CLASSPATH.name()).indexOf(Environment.PWD.$()));
   }
+
   @Test
   public void testMREnvSetupForMap() {
     Configuration conf = setupConfigForMREnvTest();


Mime
View raw message