From 34ab7b946586c078cf9ba3f9defc4ddd2efa17b5 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 1 Oct 2019 14:42:51 +0530 Subject: [PATCH] test_cephfs_shell: pass arg to "help" in test_help The default behaviour by cmd2 for help command with no argument is to print all possible commands and return 1. This leads to a failure even when test is supposed to pass. Fixes: https://tracker.ceph.com/issues/42101 Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/test_cephfs_shell.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index da8ceb6fed79c..5882c1bb6bd51 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -619,7 +619,5 @@ class TestMisc(TestCephFSShell): """ Test that help outputs commands. """ - - o = self.get_cephfs_shell_cmd_output("help") - + o = self.get_cephfs_shell_cmd_output("help all") log.info("output:\n{}".format(o)) -- 2.47.3