hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r642321 - in /hadoop/core/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/FsShell.java src/test/org/apache/hadoop/dfs/TestDFSShell.java
Date Fri, 28 Mar 2008 18:04:49 GMT
Author: cdouglas
Date: Fri Mar 28 11:04:46 2008
New Revision: 642321

URL: http://svn.apache.org/viewvc?rev=642321&view=rev
Log:
HADOOP-3114. Fix TestDFSShell on Windows. Contributed by Lohit Vijaya Renu.


Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/java/org/apache/hadoop/fs/FsShell.java
    hadoop/core/trunk/src/test/org/apache/hadoop/dfs/TestDFSShell.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=642321&r1=642320&r2=642321&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Fri Mar 28 11:04:46 2008
@@ -409,6 +409,8 @@
     HADOOP-2997. Adds test for non-writable serialier. Also fixes a problem 
     introduced by HADOOP-2399. (Tom White via ddas)
 
+    HADOOP-3114. Fix TestDFSShell on Windows. (Lohit Vijaya Renu via cdouglas)
+
 Release 0.16.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/java/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/java/org/apache/hadoop/fs/FsShell.java?rev=642321&r1=642320&r2=642321&view=diff
==============================================================================
--- hadoop/core/trunk/src/java/org/apache/hadoop/fs/FsShell.java (original)
+++ hadoop/core/trunk/src/java/org/apache/hadoop/fs/FsShell.java Fri Mar 28 11:04:46 2008
@@ -1610,7 +1610,7 @@
     } else if ("-put".equals(cmd) || "-copyFromLocal".equals(cmd) ||
                "-moveFromLocal".equals(cmd)) {
       System.err.println("Usage: java FsShell" + 
-                         " [" + cmd + " <localsrc> <dst>]");
+                         " [" + cmd + " <localsrc> ... <dst>]");
     } else if ("-get".equals(cmd)) {
       System.err.println("Usage: java FsShell [" + GET_SHORT_USAGE + "]"); 
     } else if ("-copyToLocal".equals(cmd)) {

Modified: hadoop/core/trunk/src/test/org/apache/hadoop/dfs/TestDFSShell.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/test/org/apache/hadoop/dfs/TestDFSShell.java?rev=642321&r1=642320&r2=642321&view=diff
==============================================================================
--- hadoop/core/trunk/src/test/org/apache/hadoop/dfs/TestDFSShell.java (original)
+++ hadoop/core/trunk/src/test/org/apache/hadoop/dfs/TestDFSShell.java Fri Mar 28 11:04:46
2008
@@ -211,8 +211,8 @@
       srcs[0] = new Path(f1.getPath());
       srcs[1] = new Path(f2.getPath());
       dfs.moveFromLocalFile(srcs, destmultiple2);
-      assertFalse(dfs.exists(srcs[0]));
-      assertFalse(dfs.exists(srcs[1]));
+      assertFalse(f1.exists());
+      assertFalse(f2.exists());
       srcs[0] = new Path(destmultiple2, "f1");
       srcs[1] = new Path(destmultiple2, "f2");
       assertTrue(dfs.exists(srcs[0]));



Mime
View raw message