0

Android: Skip PathExists() check when checking for openxr runtime in tests

Saves an adb call.

Bug: 381000093
Change-Id: Iadef973347835ed664476ae5cfbca1a68bab710b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6264849
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1420700}
This commit is contained in:
Andrew Grieve
2025-02-14 13:12:35 -08:00
committed by Chromium LUCI CQ
parent 7ae70ad95a
commit 0120f66eab

@ -578,10 +578,10 @@ class LocalDeviceGtestRun(local_device_test_run.LocalDeviceTestRun):
# need to be deployed this way are pretty static. As an optimization
# (especially for local development), only attempt a re-deployment if
# the contents of the files have changed.
if dev.PathExists(device_json_path, as_root=True):
try:
device_json_contents = dev.ReadFile(device_json_path, as_root=True)
replace_openxr_json = (device_json_contents != openxr_json_contents)
else:
except device_errors.CommandFailedError:
replace_openxr_json = True
if replace_openxr_json: