Title: [290767] trunk/Tools
- Revision
- 290767
- Author
- [email protected]
- Date
- 2022-03-02 22:23:24 -0800 (Wed, 02 Mar 2022)
Log Message
[Tools] Fix linux_get_crash_log.py error logging with python3
https://bugs.webkit.org/show_bug.cgi?id=237404
Reviewed by Fujii Hironori.
Avoid issues generating error logs after 247736@main defaulted to
python3.
* Scripts/webkitpy/port/linux_get_crash_log.py:
(GDBCrashLogGenerator._get_gdb_output): Encode returncode before
appending to bytes.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (290766 => 290767)
--- trunk/Tools/ChangeLog 2022-03-03 05:08:03 UTC (rev 290766)
+++ trunk/Tools/ChangeLog 2022-03-03 06:23:24 UTC (rev 290767)
@@ -1,3 +1,17 @@
+2022-03-02 Lauro Moura <[email protected]>
+
+ [Tools] Fix linux_get_crash_log.py error logging with python3
+ https://bugs.webkit.org/show_bug.cgi?id=237404
+
+ Reviewed by Fujii Hironori.
+
+ Avoid issues generating error logs after 247736@main defaulted to
+ python3.
+
+ * Scripts/webkitpy/port/linux_get_crash_log.py:
+ (GDBCrashLogGenerator._get_gdb_output): Encode returncode before
+ appending to bytes.
+
2022-03-02 Jonathan Bedard <[email protected]>
[webkitcorepy] Add Terminal.open_url
Modified: trunk/Tools/Scripts/webkitpy/port/linux_get_crash_log.py (290766 => 290767)
--- trunk/Tools/Scripts/webkitpy/port/linux_get_crash_log.py 2022-03-03 05:08:03 UTC (rev 290766)
+++ trunk/Tools/Scripts/webkitpy/port/linux_get_crash_log.py 2022-03-03 06:23:24 UTC (rev 290767)
@@ -60,7 +60,7 @@
stdout, stderr = proc.communicate()
errors = [stderr_line.strip().decode('utf8', 'ignore') for stderr_line in stderr.splitlines()]
if proc.returncode != 0:
- stdout = (b'ERROR: The gdb process exited with non-zero return code %s\n\n' % str(proc.returncode)) + stdout
+ stdout = (b'ERROR: The gdb process exited with non-zero return code %s\n\n' % str(proc.returncode).encode('utf8', 'ignore')) + stdout
return (stdout.decode('utf8', 'ignore'), errors)
def _get_tmp_file_name(self, coredumpctl, filename):
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes