From 873be2bf3a80d8e314e31483cc4c7165e89ebd6d Mon Sep 17 00:00:00 2001 From: Slawomir Jankowski Date: Wed, 19 Aug 2020 15:54:48 +0200 Subject: [PATCH] Fix test for casadm help Signed-off-by: Slawomir Jankowski --- test/functional/api/cas/cli_help_messages.py | 11 ----------- .../functional/tests/cli/test_cli_help_and_version.py | 4 ---- 2 files changed, 15 deletions(-) diff --git a/test/functional/api/cas/cli_help_messages.py b/test/functional/api/cas/cli_help_messages.py index fa087aa..d5ffa4d 100644 --- a/test/functional/api/cas/cli_help_messages.py +++ b/test/functional/api/cas/cli_help_messages.py @@ -22,7 +22,6 @@ casadm_help = [ r"-E --flush-core Flush dirty data of a given core from the caching device " r"to this core device", r"-C --io-class Manage IO classes", - r"-N --nvme Manage NVMe namespace", r"-V --version Print CAS version", r"-H --help Print help", r"--zero-metadata Clear metadata from caching device", @@ -45,16 +44,6 @@ version_help = [ r"-o --output-format \ Output format: \{table|csv\}" ] -nvme_help = [ - r"Usage: casadm --nvme --format \ --device \ \[option\.\.\.\]", - r"Manage NVMe namespace", - r"Options that are valid with --nvme \(-N\) are:", - r"-F --format \ Change NVMe metadata mode \{normal|atomic\} " - r"WARNING: Reboot required\!", - r"-d --device \ NVMe device to be formatted", - r"-f --force Force NVMe format" -] - ioclass_help = [ r"Usage: casadm --io-class \{--load-config|--list\}", r"Manage IO classes", diff --git a/test/functional/tests/cli/test_cli_help_and_version.py b/test/functional/tests/cli/test_cli_help_and_version.py index 482b00a..1047226 100644 --- a/test/functional/tests/cli/test_cli_help_and_version.py +++ b/test/functional/tests/cli/test_cli_help_and_version.py @@ -81,10 +81,6 @@ def test_cli_help(shortcut): + (" -H" if shortcut else " --help")) check_stdout_msg(output, ioclass_help) - output = TestRun.executor.run("casadm" + (" -N" if shortcut else " --nvme") - + (" -H" if shortcut else " --help")) - check_stdout_msg(output, nvme_help) - output = TestRun.executor.run("casadm" + (" -V" if shortcut else " --version") + (" -H" if shortcut else " --help")) check_stdout_msg(output, version_help)