[CRIU] [PATCH] zdtm.py: don't worry if a test class doesn't have ns() and static()
Andrey Vagin
avagin at openvz.org
Wed Dec 23 05:42:31 PST 2015
From: Andrew Vagin <avagin at virtuozzo.com>
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
test/zdtm.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/zdtm.py b/test/zdtm.py
index aaa7332..cb45d65 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -757,7 +757,8 @@ def get_visible_state(test):
files = {}
mounts = {}
- if not test.static() or not test.ns():
+ if not getattr(test, "static", lambda : False)() or \
+ not getattr(test, "ns", lambda : False)():
return ({}, {}, {})
r = re.compile('^[0-9]+$')
--
2.4.3
More information about the CRIU
mailing list