Index: Tools/Scripts/webkitpy/layout_tests/port/android.py |
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/android.py b/Tools/Scripts/webkitpy/layout_tests/port/android.py |
index 8e6e71e452d3d46dccaaf96196ffd70a11812495..8a84b112a2b741e82e23e491d621c14682c86a49 100644 |
--- a/Tools/Scripts/webkitpy/layout_tests/port/android.py |
+++ b/Tools/Scripts/webkitpy/layout_tests/port/android.py |
@@ -257,7 +257,9 @@ |
result = self._executive.run_command(self.adb_command() + command, error_handler=error_handler, debug_logging=self._debug_logging) |
# We limit the length to avoid outputting too verbose commands, such as "adb logcat". |
- self._log_debug('Run adb result: ' + result[:80]) |
+ # Also make sure that the output is ascii-encoded to avoid confusing other parts of |
+ # the system. |
+ self._log_debug('Run adb result: ' + result[:80].encode('ascii', errors='replace')) |
return result |
def get_serial(self): |