[CRIU] [PATCH 3/3] zdtm.py: Allow specifying the test suit description file

Pavel Emelyanov xemul at parallels.com
Thu Oct 8 07:29:40 PDT 2015


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 test/zdtm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index 7eddbbe..51698e4 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -470,7 +470,7 @@ class launcher:
 			sys.exit(1)
 
 def all_tests(opts):
-	desc = eval(open('zdtm.desc').read())
+	desc = eval(open(opts['set'] + '.desc').read())
 	lst = subprocess.Popen(['find', desc['dir'], '-type', 'f', '-executable' ], \
 			stdout = subprocess.PIPE)
 	excl = map(lambda x: os.path.join(desc['dir'], x), desc['exclude'])
@@ -603,6 +603,7 @@ if os.environ.has_key('CR_CT_TEST_INFO'):
 
 p = argparse.ArgumentParser("CRIU test suite")
 p.add_argument("--debug", help = "Print what's being executed", action = 'store_true')
+p.add_argument("--set", help = "Which set of tests to use", default = 'zdtm')
 
 sp = p.add_subparsers(help = "Use --help for list of actions")
 
-- 
1.9.3




More information about the CRIU mailing list