mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +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:
@@ -997,7 +997,7 @@ lp.set_defaults(action = list_tests)
|
|||||||
lp.add_argument('-i', '--info', help = "Show more info about tests", action = 'store_true')
|
lp.add_argument('-i', '--info', help = "Show more info about tests", action = 'store_true')
|
||||||
|
|
||||||
opts = vars(p.parse_args())
|
opts = vars(p.parse_args())
|
||||||
if opts['sat']:
|
if opts.get('sat', False):
|
||||||
opts['keep_img'] = 'always'
|
opts['keep_img'] = 'always'
|
||||||
|
|
||||||
if opts['debug']:
|
if opts['debug']:
|
||||||
|
Reference in New Issue
Block a user