hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r691799 - in /hadoop/core/trunk: CHANGES.txt src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java
Date Wed, 03 Sep 2008 21:45:14 GMT
Author: omalley
Date: Wed Sep  3 14:45:14 2008
New Revision: 691799

URL: http://svn.apache.org/viewvc?rev=691799&view=rev
Log:
HADOOP-4050. Fix TestFailScheduler to use absolute paths for the work
directory. (Matei Zaharia via omalley)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=691799&r1=691798&r2=691799&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Sep  3 14:45:14 2008
@@ -449,6 +449,9 @@
     HADOOP-3954. Disable record skipping by default. (Sharad Agarwal via
     cdouglas)
 
+    HADOOP-4050. Fix TestFailScheduler to use absolute paths for the work
+    directory. (Matei Zaharia via omalley)
+
 Release 0.18.1 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java?rev=691799&r1=691798&r2=691799&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java
(original)
+++ hadoop/core/trunk/src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java
Wed Sep  3 14:45:14 2008
@@ -34,8 +34,11 @@
 import org.apache.hadoop.mapred.FairScheduler.JobInfo;
 
 public class TestFairScheduler extends TestCase {
-  final static String TEST_DIR = new File(".").getAbsolutePath();
-  final static String ALLOC_FILE = new File("./test-pools").getAbsolutePath();
+  final static String TEST_DIR = new File(System.getProperty("test.build.data",
+  		"build/contrib/streaming/test/data")).getAbsolutePath();
+  final static String ALLOC_FILE = new File(TEST_DIR, 
+  		"test-pools").getAbsolutePath();
+  
   private static final String POOL_PROPERTY = "pool";
   
   private static int jobCounter;



Mime
View raw message