hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8310) Fix TestCLI.testAll 'help: help for find' on Windows
Date Thu, 07 May 2015 10:46:05 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532435#comment-14532435
] 

Hudson commented on HDFS-8310:
------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #920 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/920/])
HDFS-8310. Fix TestCLI.testAll 'help: help for find' on Windows. (Kiran Kumar M R via Xiaoyu
Yao) (xyao: rev 7a26d174aff9535f7a60711bee586e225891b383)
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/cli/util/RegexpAcrossOutputComparator.java


> Fix TestCLI.testAll 'help: help for find' on Windows
> ----------------------------------------------------
>
>                 Key: HDFS-8310
>                 URL: https://issues.apache.org/jira/browse/HDFS-8310
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: test
>    Affects Versions: 2.7.0
>            Reporter: Xiaoyu Yao
>            Assignee: Kiran Kumar M R
>            Priority: Minor
>              Labels: BB2015-05-RFC
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8310-001.patch, HDFS-8310-002.patch
>
>
> The test uses <RegexAcrossOutputComparator> in a single regex, which does not match
on Windows as shown below.
> {code}
> 2015-04-30 01:14:01,737 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(155))
- -------------------------------------------
> 2015-04-30 01:14:01,737 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(156))
-                     Test ID: [31]
> 2015-04-30 01:14:01,737 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(157))
-            Test Description: [help: help for find]
> 2015-04-30 01:14:01,737 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(158))
- 
> 2015-04-30 01:14:01,738 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(162))
-               Test Commands: [-help find]
> 2015-04-30 01:14:01,738 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(166))
- 
> 2015-04-30 01:14:01,738 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(173))
- 
> 2015-04-30 01:14:01,738 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(177))
-                  Comparator: [RegexpAcrossOutputComparator]
> 2015-04-30 01:14:01,738 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(179))
-          Comparision result:   [fail]
> 2015-04-30 01:14:01,739 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(181))
-             Expected output:   [-find <path> \.\.\. <expression> \.\.\. :
>   Finds all files that match the specified expression and
>   applies selected actions to them\. If no <path> is specified
>   then defaults to the current working directory\. If no
>   expression is specified then defaults to -print\.
>   
>   The following primary expressions are recognised:
>     -name pattern
>     -iname pattern
>       Evaluates as true if the basename of the file matches the
>       pattern using standard file system globbing\.
>       If -iname is used then the match is case insensitive\.
>   
>     -print
>     -print0
>       Always evaluates to true. Causes the current pathname to be
>       written to standard output followed by a newline. If the -print0
>       expression is used then an ASCII NULL character is appended rather
>       than a newline.
>   
>   The following operators are recognised:
>     expression -a expression
>     expression -and expression
>     expression expression
>       Logical AND operator for joining two expressions\. Returns
>       true if both child expressions return true\. Implied by the
>       juxtaposition of two expressions and so does not need to be
>       explicitly specified\. The second expression will not be
>       applied if the first fails\.
> ]
> 2015-04-30 01:14:01,739 INFO  cli.CLITestHelper (CLITestHelper.java:displayResults(183))
-               Actual output:   [-find <path> ... <expression> ... :
>   Finds all files that match the specified expression and
>   applies selected actions to them. If no <path> is specified
>   then defaults to the current working directory. If no
>   expression is specified then defaults to -print.
>   
>   The following primary expressions are recognised:
>     -name pattern
>     -iname pattern
>       Evaluates as true if the basename of the file matches the
>       pattern using standard file system globbing.
>       If -iname is used then the match is case insensitive.
>   
>     -print
>     -print0
>       Always evaluates to true. Causes the current pathname to be
>       written to standard output followed by a newline. If the -print0
>       expression is used then an ASCII NULL character is appended rather
>       than a newline.
>   
>   The following operators are recognised:
>     expression -a expression
>     expression -and expression
>     expression expression
>       Logical AND operator for joining two expressions. Returns
>       true if both child expressions return true. Implied by the
>       juxtaposition of two expressions and so does not need to be
>       explicitly specified. The second expression will not be
>       applied if the first fails.
> ]
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message