[CRIU] [PATCH] zdtm.py: don't worry if uns isn't in run_flavs

Andrey Vagin avagin at gmail.com
Wed Dec 9 04:47:11 PST 2015


From: Andrey Vagin <avagin at openvz.org>

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index dd8bedf..6f0744a 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -975,7 +975,11 @@ def run_tests(opts):
 			else:
 				run_flavs = set([test_flavs.pop()])
 			if not criu_cli.check("userns"):
-				run_flavs.remove("uns")
+				try:
+					run_flavs.remove("uns")
+				except ValueError:
+					# don't worry if uns isn't in run_flavs
+					pass
 
 
 			if run_flavs:
-- 
2.4.3



More information about the CRIU mailing list