Commit 6dd7eacc authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Andrei Vagin

zdtm: Make possible to claim for features list

Currently, one feature is supported. Add possibility
for a test to depend on several features.

v2: Delete excess "if" as suggested by Andrey Vagin.
    Rename variables to decrise patch size.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 3ba08939
......@@ -1810,15 +1810,18 @@ def run_tests(opts):
launcher.skip(t, "manual run only")
continue
feat = tdesc.get('feature', None)
if feat:
feat_list = tdesc.get('feature', "")
for feat in feat_list.split():
if feat not in features:
print "Checking feature %s" % feat
features[feat] = criu.check(feat)
if not features[feat]:
launcher.skip(t, "no %s feature" % feat)
continue
feat_list = None
break
if feat_list is None:
continue
if self_checkskip(t):
launcher.skip(t, "checkskip failed")
......
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