[CRIU] [PATCH v2 01/21] zdtm: Make possible to claim for features list
Kirill Tkhai
ktkhai at virtuozzo.com
Wed May 31 10:51:48 PDT 2017
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: Kirill Tkhai <ktkhai at virtuozzo.com>
---
test/zdtm.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/test/zdtm.py b/test/zdtm.py
index 5fcc3e1a6..8fabe4ef4 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1749,15 +1749,18 @@ default_test = {}
l.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]:
l.skip(t, "no %s feature" % feat)
- continue
+ feat_list = None
+ break
+ if feat_list is None:
+ continue
if self_checkskip(t):
l.skip(t, "checkskip failed")
More information about the CRIU
mailing list