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

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

Issue 2252863004: Use crossystem inside_vm (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: . Created 4 years, 4 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
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..a1e15df1c51f389bd3d1f28f9196b22181cbb799 100644
--- a/telemetry/telemetry/internal/platform/cros_platform_backend.py
+++ b/telemetry/telemetry/internal/platform/cros_platform_backend.py
@@ -173,9 +173,7 @@ class CrosPlatformBackend(
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.IsRunningOnVM()
achuithb 2016/08/18 18:36:02 We prefer to default IsRunningOnVM to True, so Can
def TakeScreenshot(self, file_path):
return self._cri.TakeScreenshot(file_path)
« telemetry/telemetry/core/cros_interface.py ('K') | « telemetry/telemetry/core/cros_interface.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698