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

Unified Diff: telemetry/telemetry/internal/platform/cros_platform_backend.py

Issue 1954573002: Disable screenshots on VMs. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « telemetry/telemetry/core/cros_interface.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/platform/cros_platform_backend.py
diff --git a/telemetry/telemetry/internal/platform/cros_platform_backend.py b/telemetry/telemetry/internal/platform/cros_platform_backend.py
index bc87ab4c26ccaa6f0990aaddeeb21ba0f13360c0..1cc76d65ade525fda47bfcd400940c9a6b878699 100644
--- a/telemetry/telemetry/internal/platform/cros_platform_backend.py
+++ b/telemetry/telemetry/internal/platform/cros_platform_backend.py
@@ -169,7 +169,8 @@ class CrosPlatformBackend(
return self._cri.FileExistsOnDevice(path)
def CanTakeScreenshot(self):
- return True
+ # crbug.com/609001: screenshots don't work on VMs.
+ return not self.cri.IsRunningOnVM()
def TakeScreenshot(self, file_path):
return self._cri.TakeScreenshot(file_path)
« no previous file with comments | « telemetry/telemetry/core/cros_interface.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698