]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: remove quirky argparse case
authorJohn Spray <john.spray@redhat.com>
Thu, 11 Oct 2018 09:23:52 +0000 (05:23 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 2 Nov 2018 10:57:42 +0000 (06:57 -0400)
This relied on a behaviour where positional
arguments could be omitted if the subsequent
argument was of a different type.

This was pretty weird, and in any case the reweight-by-utilization
command is likely to go away soon.

Signed-off-by: John Spray <john.spray@redhat.com>
src/test/pybind/test_ceph_argparse.py

index 660ce4656a32a5a7d4e218cb3d3b7c0d96ff5b1c..ec4465b83dbe5a82a5d807b4149ad53063f48307 100755 (executable)
@@ -1123,7 +1123,6 @@ class TestOSD(TestArgparse):
         self.assert_valid_command(['osd', 'reweight-by-utilization'])
         self.assert_valid_command(['osd', 'reweight-by-utilization', '100'])
         self.assert_valid_command(['osd', 'reweight-by-utilization', '100', '.1'])
-        self.assert_valid_command(['osd', 'reweight-by-utilization', '--no-increasing'])
         assert_equal({}, validate_command(sigdict, ['osd',
                                                     'reweight-by-utilization',
                                                     '100',