Title: [271765] trunk/Tools
Revision
271765
Author
[email protected]
Date
2021-01-22 16:04:44 -0800 (Fri, 22 Jan 2021)

Log Message

Update run-benchmark to work with Python3
https://bugs.webkit.org/show_bug.cgi?id=220878

Patch by W.D. Xiong <[email protected]> on 2021-01-22
Reviewed by Jonathan Bedard.

* Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
(SimpleHTTPServerDriver._find_http_server_port): Convert byte output to string before parsing regex

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (271764 => 271765)


--- trunk/Tools/ChangeLog	2021-01-22 23:59:48 UTC (rev 271764)
+++ trunk/Tools/ChangeLog	2021-01-23 00:04:44 UTC (rev 271765)
@@ -1,3 +1,13 @@
+2021-01-22  W.D. Xiong  <[email protected]>
+
+        Update run-benchmark to work with Python3
+        https://bugs.webkit.org/show_bug.cgi?id=220878
+
+        Reviewed by Jonathan Bedard.
+
+        * Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py:
+        (SimpleHTTPServerDriver._find_http_server_port): Convert byte output to string before parsing regex
+
 2021-01-22  Lauro Moura  <[email protected]>
 
         [webkitpy][GTK] Xvfb driver fails to start with python3

Modified: trunk/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py (271764 => 271765)


--- trunk/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py	2021-01-22 23:59:48 UTC (rev 271764)
+++ trunk/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py	2021-01-23 00:04:44 UTC (rev 271765)
@@ -61,7 +61,7 @@
         except ImportError:
             try:
                 output = subprocess.check_output(['/usr/sbin/lsof', '-a', '-P', '-iTCP', '-sTCP:LISTEN', '-p', str(self._server_process.pid)])
-                self._server_port = int(re.search(r'TCP .*:(\d+) \(LISTEN\)', output).group(1))
+                self._server_port = int(re.search(r'TCP .*:(\d+) \(LISTEN\)', str(output)).group(1))
             except Exception as error:
                 _log.info('Error: %s' % error)
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to