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

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

Issue 2068063002: Use platform.processor to figure out if we're in a VM. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 4 years, 6 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 3ac7d3902f0a7ead1aaca6ff45d37cd8a3ff60e8..85469ac66a2d00dc09b8b209359aad78befce855 100644
--- a/telemetry/telemetry/internal/platform/cros_platform_backend.py
+++ b/telemetry/telemetry/internal/platform/cros_platform_backend.py
@@ -172,10 +172,7 @@ class CrosPlatformBackend(
return self._cri.FileExistsOnDevice(path)
def CanTakeScreenshot(self):
- # crbug.com/609001: screenshots don't work on VMs.
- logging.info('Sys vendor=' + self.cri.SysVendor() +
- ', IsRunningOnVM=' + repr(self.cri.IsRunningOnVM()))
- return False
+ return not self.cri.IsRunningInVM()
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