Commit 94729e1d authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm.py: Put criu opts into file, not on the screep

It's very inconvenient to read the zdtm.py output with long
lines of options.
Reported-by: 's avatarAndrey Vagin <avagin@odin.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c300544a
...@@ -492,7 +492,10 @@ class criu_cli: ...@@ -492,7 +492,10 @@ class criu_cli:
s_args = ["-o", log, "-D", self.__ddir(), "-v4"] + opts 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) ret = self.__criu(action, s_args, self.__fault)
if ret != 0: if ret != 0:
if self.__fault or self.__test.blocking(): if self.__fault or self.__test.blocking():
......
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