]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
tests: teuthology-* --invalid-option is a sure fail 693/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 19 Nov 2015 10:53:07 +0000 (11:53 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 19 Nov 2015 10:53:07 +0000 (11:53 +0100)
Providing the INVALID argument may succeed, depending on how the script
interprets arguments.

Signed-off-by: Loic Dachary <loic@dachary.org>
scripts/test/script.py

index 4f5aa7a1628c64ce7f85b4f8e91a1b5ec390a236..43f24548cbb1316d375b25a9dcd44af85801d648 100644 (file)
@@ -11,6 +11,6 @@ class Script(object):
         assert out.startswith('usage')
 
     def test_invalid(self):
-        args = (self.script_name, 'INVALID')
+        args = (self.script_name, '--invalid-option')
         with raises(subprocess.CalledProcessError):
             subprocess.check_call(args)