patman: Update cros_subprocess to use bytes
authorSimon Glass <sjg@chromium.org>
Sat, 11 May 2019 18:46:39 +0000 (12:46 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:43 +0000 (16:52 -0600)
commitb1793a531e5934ea5453b7e24495e2fcddd9c493
treeec7dcc4d8e6e8ad74aaebce9880b19b230ecef95
parentef8b7e045ec744dce385cac4b1438c9be6e2bbc8
patman: Update cros_subprocess to use bytes

At present this function uses lists and strings. This does not work so
well with Python 3, and testing against '' does not work for a bytearray.
Update the code to fix these issues.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/cros_subprocess.py
tools/patman/gitutil.py