hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoyu Yao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8310) Fix TestCLI.testAll "help: help for find" on Windows
Date Sun, 03 May 2015 05:43:06 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiaoyu Yao updated HDFS-8310:
-----------------------------
    Hadoop Flags: Reviewed

> 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
>         Attachments: HDFS-8310-001.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