Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: tools/telemetry/third_party/pyserial/linux-product_info.patch

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/pyserial/linux-product_info.patch
diff --git a/tools/telemetry/third_party/pyserial/linux-product_info.patch b/tools/telemetry/third_party/pyserial/linux-product_info.patch
deleted file mode 100644
index 9f8001a469a4513362ef88d9446c42bdce860033..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/pyserial/linux-product_info.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Index: serial/tools/list_ports_linux.py
-===================================================================
---- serial/tools/list_ports_linux.py (revision 494)
-+++ serial/tools/list_ports_linux.py (working copy)
-@@ -110,6 +110,14 @@
- sys_dev_path = '/sys/class/tty/%s/device/interface' % (base,)
- if os.path.exists(sys_dev_path):
- return read_line(sys_dev_path)
-+
-+ # USB Product Information
-+ sys_dev_path = '/sys/class/tty/%s/device' % (base,)
-+ if os.path.exists(sys_dev_path):
-+ product_name_file = os.path.dirname(os.path.realpath(sys_dev_path)) + "/product"
-+ if os.path.exists(product_name_file):
-+ return read_line(product_name_file)
-+
- return base
-
- def hwinfo(device):
« no previous file with comments | « tools/telemetry/third_party/pyserial/README.chromium ('k') | tools/telemetry/third_party/pyserial/serial/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698