mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
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 <xemul@parallels.com>
This commit is contained in:
parent
327f835d37
commit
12db8a47c3
@ -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']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user