From: Loic Dachary Date: Thu, 19 Nov 2015 10:53:07 +0000 (+0100) Subject: tests: teuthology-* --invalid-option is a sure fail X-Git-Tag: 1.1.0~753^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F693%2Fhead;p=teuthology.git tests: teuthology-* --invalid-option is a sure fail Providing the INVALID argument may succeed, depending on how the script interprets arguments. Signed-off-by: Loic Dachary --- diff --git a/scripts/test/script.py b/scripts/test/script.py index 4f5aa7a16..43f24548c 100644 --- a/scripts/test/script.py +++ b/scripts/test/script.py @@ -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)