Commit 12db8a47 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 327f835d
......@@ -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']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment