diff options
author | Zachary Turner <zturner@google.com> | 2015-11-30 22:31:24 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-11-30 22:31:24 +0000 |
commit | 6f12d3335d03f7e5db35f8af482e9d71840da601 (patch) | |
tree | 51b711db45c826b677846163e4c5fa1a2e770c34 /lldb/scripts/swig_bot_lib/remote.py | |
parent | 24a95f852d3664a0b397cd6cedeee5a0bd01d8dc (diff) | |
download | bcm5719-llvm-6f12d3335d03f7e5db35f8af482e9d71840da601.tar.gz bcm5719-llvm-6f12d3335d03f7e5db35f8af482e9d71840da601.zip |
Unpack the output on the client, completing the cycle.
llvm-svn: 254341
Diffstat (limited to 'lldb/scripts/swig_bot_lib/remote.py')
-rw-r--r-- | lldb/scripts/swig_bot_lib/remote.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/swig_bot_lib/remote.py b/lldb/scripts/swig_bot_lib/remote.py index 74edb67f69c..590a873d627 100644 --- a/lldb/scripts/swig_bot_lib/remote.py +++ b/lldb/scripts/swig_bot_lib/remote.py @@ -28,3 +28,12 @@ def parse_config(json_reader): json_data = json_reader.read() options_dict = json.loads(json_data) return options_dict + +def serialize_response_status(status): + status = {"retcode": status[0], "output": status[1]} + return json.dumps(status) + +def deserialize_response_status(json_reader): + json_data = json_reader.read() + response_dict = json.loads(json_data) + return (response_dict["retcode"], response_dict["output"]) |