Skip to content

Commit 94e07c4

Browse files
bpasteneChromium LUCI CQ
authored and
Chromium LUCI CQ
committed
Support the py3 value for 'sys.platform' in scripts/sizes.py
After https://chromium-review.googlesource.com/c/chromium/src/+/3301364, executions of this script on the bots are failing with: Unsupported sys.platform 'linux'. eg: https://ci.chromium.org/ui/p/chrome/builders/ci/linux-chrome/39349/overview Likely because of the value of sys.platform changed from py2 to py3. Supporting both vals should avoid the error. Bug: 1274788 Change-Id: Ibd3d463bcaee4ae390a224ff8cde14f00a86124a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307182 Commit-Queue: Ben Pastene <[email protected]> Reviewed-by: Dirk Pranke <[email protected]> Cr-Commit-Position: refs/heads/main@{#946195}
1 parent 4d24499 commit 94e07c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/scripts/sizes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def main():
448448
default_platform = 'win'
449449
elif sys.platform.startswith('darwin'):
450450
default_platform = 'mac'
451-
elif sys.platform == 'linux2':
451+
elif sys.platform.startswith('linux'):
452452
default_platform = 'linux'
453453
else:
454454
default_platform = None

0 commit comments

Comments
 (0)