hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r692286 - in /hadoop/core/trunk: CHANGES.txt src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java
Date Thu, 04 Sep 2008 22:41:24 GMT
Author: omalley
Date: Thu Sep  4 15:41:24 2008
New Revision: 692286

URL: http://svn.apache.org/viewvc?rev=692286&view=rev
Log:
HADOOP-4069. Keep temporary test files from TestKosmosFileSystem under
test.build.data instead of /tmp. (Hemanth Yamijala via omalley)

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=692286&r1=692285&r2=692286&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Sep  4 15:41:24 2008
@@ -455,6 +455,9 @@
     HADOOP-4050. Fix TestFailScheduler to use absolute paths for the work
     directory. (Matei Zaharia via omalley)
 
+    HADOOP-4069. Keep temporary test files from TestKosmosFileSystem under
+    test.build.data instead of /tmp. (Hemanth Yamijala via omalley)
+
 Release 0.18.1 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java?rev=692286&r1=692285&r2=692286&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java Thu Sep
 4 15:41:24 2008
@@ -38,6 +38,7 @@
 
     KosmosFileSystem kosmosFileSystem;
     KFSEmulationImpl kfsEmul;
+    Path baseDir;
     
     @Override
     protected void setUp() throws IOException {
@@ -47,6 +48,8 @@
         kosmosFileSystem = new KosmosFileSystem(kfsEmul);
         // a dummy URI; we are not connecting to any setup here
         kosmosFileSystem.initialize(URI.create("kfs:///"), conf);
+        baseDir = new Path(System.getProperty("test.build.data",
+                                               "/tmp/kfs-test"));
     }
 
     @Override
@@ -57,7 +60,6 @@
     // @Test
     // Check all the directory API's in KFS
     public void testDirs() throws Exception {
-        Path baseDir = new Path("/tmp/test/kfs-test");
         Path subDir1 = new Path("dir.1");
 
         // make the dir
@@ -81,7 +83,6 @@
     // @Test
     // Check the file API's
     public void testFiles() throws Exception {
-        Path baseDir = new Path("/tmp/test/kfs-test");
         Path subDir1 = new Path("dir.1");
         Path file1 = new Path("dir.1/foo.1");
         Path file2 = new Path("dir.1/foo.2");
@@ -116,7 +117,6 @@
     // @Test
     // Check file/read write
     public void testFileIO() throws Exception {
-        Path baseDir = new Path("/tmp/test/kfs-test");
         Path subDir1 = new Path("dir.1");
         Path file1 = new Path("dir.1/foo.1");
 



Mime
View raw message