You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ma...@apache.org on 2011/06/09 09:33:35 UTC

svn commit: r1133692 - /hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java

Author: mahadev
Date: Thu Jun  9 07:33:34 2011
New Revision: 1133692

URL: http://svn.apache.org/viewvc?rev=1133692&view=rev
Log:
HADOOP-7364. TestMiniMRDFSCaching fails if test.build.dir is set to something other than build/test (Thomas Graves via mahadev)

Modified:
    hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java

Modified: hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java?rev=1133692&r1=1133691&r2=1133692&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java (original)
+++ hadoop/common/branches/branch-0.20-security/src/test/org/apache/hadoop/mapred/MRCaching.java Thu Jun  9 07:33:34 2011
@@ -189,7 +189,8 @@ public class MRCaching {
 
   static void setupCache(String cacheDir, FileSystem fs) 
   throws IOException {
-    Path localPath = new Path("build/test/cache");
+    Path localPath = new Path(System.getProperty("test.cache.data", "build/test/cache"));
+
     Path txtPath = new Path(localPath, new Path("test.txt"));
     Path jarPath = new Path(localPath, new Path("test.jar"));
     Path zipPath = new Path(localPath, new Path("test.zip"));