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

Unified Diff: tools/telemetry/telemetry/core/platform/platform_backend_unittest.py

Issue 605633002: [telemetry] Fix MSR CanMonitorPower(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test. Created 6 years, 3 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: tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
diff --git a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py b/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
index ad18502acf5cc6413a18edac028846de7495676f..a6d37b4aed69e2c2b885ff3f0151d69306f2fed2 100644
--- a/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
+++ b/tools/telemetry/telemetry/core/platform/platform_backend_unittest.py
@@ -13,7 +13,9 @@ class PlatformBackendTest(unittest.TestCase):
def testPowerMonitoringSync(self):
# Tests that the act of monitoring power doesn't blow up.
platform = platform_module.GetHostPlatform()
- if not platform.CanMonitorPower():
+ can_monitor_power = platform.CanMonitorPower()
+ self.assertIsInstance(can_monitor_power, bool)
+ if not can_monitor_power:
logging.warning('Test not supported on this platform.')
return

Powered by Google App Engine
This is Rietveld 408576698