浏览代码

HDFS-12898. Ozone: TestSCMCli#testHelp and TestSCMCli#testNonExistCommand fail consistently. Contributed by Shashikant Banerjee.

Nanda kumar 7 年之前
父节点
当前提交
11473b8204

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/scm/TestSCMCli.java

@@ -329,7 +329,7 @@ public class TestSCMCli {
     assertTrue(errContent.toString()
         .contains("Unrecognized options:[-nothingUseful]"));
     String expectedOut =
-        "usage: hdfs scm <commands> [<options>]\n" +
+        "usage: hdfs scmcli <commands> [<options>]\n" +
         "where <commands> can be one of the following\n" +
         " -container   Container related options\n";
     assertEquals(expectedOut, testContent.toString());
@@ -470,7 +470,7 @@ public class TestSCMCli {
     String[] args = {"-help"};
     assertEquals(ResultCode.SUCCESS, cli.run(args));
     String expected =
-        "usage: hdfs scm <commands> [<options>]\n" +
+        "usage: hdfs scmcli <commands> [<options>]\n" +
         "where <commands> can be one of the following\n" +
         " -container   Container related options\n";
     assertEquals(expected, testContent.toString());