From 12db8a47c39d799525db7db62f91f96eebeed345 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 3 Dec 2015 15:29:00 +0300 Subject: [PATCH] zdtm.py: Get 'sat' option with .get method When using non-run command the 'sat' option is not in opts dict, so it should be checked with softer method. Signed-off-by: Pavel Emelyanov --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index b02288286..7cf113cf5 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -997,7 +997,7 @@ lp.set_defaults(action = list_tests) lp.add_argument('-i', '--info', help = "Show more info about tests", action = 'store_true') opts = vars(p.parse_args()) -if opts['sat']: +if opts.get('sat', False): opts['keep_img'] = 'always' if opts['debug']: