[CRIU] [PATCH] zdtm.py: Put criu opts into file, not on the screep
Pavel Emelyanov
xemul at parallels.com
Fri Oct 30 08:51:55 PDT 2015
It's very inconvenient to read the zdtm.py output with long
lines of options.
Reported-by: Andrey Vagin <avagin at odin.com>
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
test/zdtm.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/zdtm.py b/test/zdtm.py
index 0c23a47..48e4b7f 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -492,7 +492,10 @@ class criu_cli:
s_args = ["-o", log, "-D", self.__ddir(), "-v4"] + opts
- print "Run CRIU: [" + action + " " + " ".join(s_args) + "]"
+ with open(os.path.join(self.__ddir(), action + '.cropt'), 'w') as f:
+ f.write(' '.join(s_args) + '\n')
+ print "Run criu " + action
+
ret = self.__criu(action, s_args, self.__fault)
if ret != 0:
if self.__fault or self.__test.blocking():
--
1.9.3
More information about the CRIU
mailing list