Commit d0955c68 authored by S. Zeid's avatar S. Zeid

[cli/engine] add a python-repr robot format for debugging purposes

parent ad24af4f
......@@ -233,6 +233,8 @@ class Command(object):
print >> self.stdout, plistlib.writePlistToString(robot_output)
elif self.output_format == "json":
print >> self.stdout, json.dumps(robot_output)
elif self.output_format == "python-repr":
print >> self.stdout, repr(robot_output)
else:
raise ValueError("bad output format %s" % repr(self.output_format))
......
......@@ -225,7 +225,7 @@ class ShellCommand(Command):
build = ""
else:
continue
elif self.real_output_format == "json":
elif self.real_output_format in ("json", "python-repr"):
argv = json.loads(line)
else:
argv = shlex.split(line)
......
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