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

Unified Diff: telemetry/telemetry/core/cros_interface_unittest.py

Issue 2063993002: Implement GetDeviceTypeName on cros. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: . 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
Index: telemetry/telemetry/core/cros_interface_unittest.py
diff --git a/telemetry/telemetry/core/cros_interface_unittest.py b/telemetry/telemetry/core/cros_interface_unittest.py
index 47480a4bcd9926b5a647bb1d66f0540a74fe488b..07b7f6be5fe2ea2517cdcdd7f18bd1738811d303 100644
--- a/telemetry/telemetry/core/cros_interface_unittest.py
+++ b/telemetry/telemetry/core/cros_interface_unittest.py
@@ -147,6 +147,14 @@ class CrOSInterfaceTest(unittest.TestCase):
'/var/log/screenshots/test-prefix-0.png'))
_Cleanup()
+ @decorators.Enabled('chromeos')
+ def testLsbReleaseValue(self):
+ with self._GetCRI() as cri:
+ build_num = cri.LsbReleaseValue('CHROMEOS_RELEASE_BUILD_NUMBER', None)
+ self.assertTrue(build_num.isdigit())
+ device_type = cri.LsbReleaseValue('DEVICETYPE', None)
+ self.assertTrue(device_type.isalpha())
+
# TODO(tengs): It would be best if we can filter this test and other tests
# that need to be run locally based on the platform of the system browser.
@decorators.Enabled('linux')
« no previous file with comments | « telemetry/telemetry/core/cros_interface.py ('k') | telemetry/telemetry/internal/platform/cros_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698