Author: cos
Date: Tue Dec 1 23:18:24 2009
New Revision: 885998
URL: http://svn.apache.org/viewvc?rev=885998&view=rev
Log:
HDFS-792. TestHDFSCLI is failing. Contributed by Todd Lipcon.
Modified:
hadoop/hdfs/trunk/CHANGES.txt
hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/cli/testHDFSConf.xml
Modified: hadoop/hdfs/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=885998&r1=885997&r2=885998&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Tue Dec 1 23:18:24 2009
@@ -83,6 +83,8 @@
HDFS-791. Build is broken after HDFS-787 patch has been applied (cos)
+ HDFS-792. TestHDFSCLI is failing. (Todd Lipcon via cos)
+
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES
Modified: hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/cli/testHDFSConf.xml
URL:
http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/cli/testHDFSConf.xml?rev=885998&r1=885997&r2=885998&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/cli/testHDFSConf.xml
(original)
+++ hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/cli/testHDFSConf.xml Tue
Dec 1 23:18:24 2009
@@ -15187,27 +15187,43 @@
<comparators>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^-du <path>:( |\t)*Show the amount of space, in
bytes, used by the files that( )*</expected-output>
+ <expected-output>^-du \[-s\] \[-h\] <path>:\s+Show the amount
of space, in bytes, used by the files that\s*</expected-output>
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*match the specified file pattern.(
)*Equivalent to the unix( )*</expected-output>
+ <expected-output>^\s*match the specified file pattern. The following
flags are optional:</expected-output>
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*command "du -sb <path>/\*" in case of
a directory,( )*</expected-output>
+ <expected-output>^\s*-s\s*Rather than showing the size of each
individual file that</expected-output>
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*and to "du -b <path>" in case of a
file.( )*</expected-output>
+ <expected-output>^\s*matches the pattern, shows the total
\(summary\) size.</expected-output>
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*The output is in the form(
)*</expected-output>
+ <expected-output>^\s*-h\s*Formats the sizes of files in a
human-readable fashion</expected-output>
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*name\(full path\) size \(in bytes\)(
)*</expected-output>
+ <expected-output>\s*rather than a number of bytes.</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^\s*Note that, even without the -s option, this
only shows size summaries</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^\s*one level deep into a
directory.</expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^\s*The output is in the form </expected-output>
+ </comparator>
+ <comparator>
+ <type>RegexpComparator</type>
+ <expected-output>^\s*size\s+name\(full path\)\s*</expected-output>
</comparator>
</comparators>
</test>
@@ -15226,15 +15242,7 @@
</comparator>
<comparator>
<type>RegexpComparator</type>
- <expected-output>^( |\t)*match the specified file pattern.
Equivalent to the unix( )*</expected-output>
- </comparator>
- <comparator>
- <type>RegexpComparator</type>
- <expected-output>^( |\t)*command "du -sb" The output is in the
form( )*</expected-output>
- </comparator>
- <comparator>
- <type>RegexpComparator</type>
- <expected-output>^( |\t)*name\(full path\) size \(in bytes\)(
)*</expected-output>
+ <expected-output>^( |\t)*match the specified file pattern. This is
equivalent to -du -s above.</expected-output>
</comparator>
</comparators>
</test>