Commit 94d91458 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm.py: don't worry if uns isn't in run_flavs

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7094e110
......@@ -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:
......
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