Commit 7c11b0b9 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm.py: don't worry if a test class doesn't have ns() and static()

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 57d73475
......@@ -766,7 +766,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]+$')
......
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