[CRIU] [PATCH] zdtm.py: Get 'sat' option with .get method

Pavel Emelyanov xemul at parallels.com
Thu Dec 3 04:29:45 PST 2015


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 at parallels.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index 8009e5e..5b72ebd 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']:
-- 
1.9.3



More information about the CRIU mailing list