From a14753e6bf87d8b7c5b66fd9df02bd7a540286d7 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 19 Nov 2015 11:53:07 +0100 Subject: [PATCH] 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 --- scripts/test/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test/script.py b/scripts/test/script.py index 4f5aa7a162..43f24548cb 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) -- 2.39.5