Commit 4909e3a
committed
driver/fastbootdriver: decode output to str before split
processwrapper.check_output returns a byte-like object, which is not
compatible with split() with an str. Decode the output to a str to fix
this.
This fixes direct calls of the getvar function from a test suite.
Calling `fastboot getvar` from the command line doesn't use the
filtering mechanism and is successful without this fix.
The alternatives would have been to change the callers of
_filter_fastboot_output to convert the byte-like object to a string, or
to change '\n' to a byte-like object. The latter would also need a
change of the startswith call.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>1 parent 05a4eda commit 4909e3a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments