Bug 1777519 [wpt PR 34660] - Avoid OSError from --kill-safari stat'ing random paths...
commitf59445320f1c8097167acb776111d7385fc063c4
authorSam Sneddon <gsnedders@apple.com>
Fri, 10 Feb 2023 17:43:49 +0000 (10 17:43 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 20 Feb 2023 09:49:35 +0000 (20 09:49 +0000)
tree8185000496f7be00aa68fa5c7f97c91cb4412e67
parent313f318202a22e8da7eae7d8f5606f335facad3b
Bug 1777519 [wpt PR 34660] - Avoid OSError from --kill-safari stat'ing random paths, a=testonly

Automatic update from web-platform-tests
Avoid OSError from --kill-safari stat'ing random paths

We call os.path.samefile on every process we can get the executable
path of; however, we might not be able to stat all of them, for
example raising PermissionError, thus we should handle this.
--

wpt-commits: a213390e1c7451ebc1ed07d3ddc0309711788b04
wpt-pr: 34660
testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/safari.py