commit | 8a4923c644c54f1cc26c739298e13e9b262e27f3 | [log] [tgz] |
---|---|---|
author | Rohit Makasana <rohitbm@chromium.org> | Thu Aug 13 17:04:26 2015 -0700 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Sat Aug 15 03:05:38 2015 +0000 |
tree | 40d2aaaba1ea963e795ab88063d09b9681a2cc5e | |
parent | aa7e7420779e155c0d67c641f44f7c033624c2d7 [diff] [blame] |
Disabling un-supported stress tests on non-chromebooks Adding APIs to check device type. BUG=chromium:519078 TEST=Ran locally Change-Id: I0b0f94d71c758ac4a06b5a5eca23258f5d319855 Reviewed-on: https://chromium-review.googlesource.com/293602 Reviewed-by: danny chan <dchan@chromium.org> Commit-Queue: Rohit Makasana <rohitbm@chromium.org> Tested-by: Rohit Makasana <rohitbm@chromium.org>
diff --git a/server/site_tests/platform_PowerStatusStress/platform_PowerStatusStress.py b/server/site_tests/platform_PowerStatusStress/platform_PowerStatusStress.py index 456bb2f..ebf007f 100644 --- a/server/site_tests/platform_PowerStatusStress/platform_PowerStatusStress.py +++ b/server/site_tests/platform_PowerStatusStress/platform_PowerStatusStress.py
@@ -76,9 +76,6 @@ self.wait_to_come_up() - - - def cleanup(self): """ Finish as powered on and lid open""" self.host.power_on() @@ -120,6 +117,10 @@ def run_once(self, host, loop_count): self.host = host + dut_type = host.get_board_type() + if dut_type is not 'CHROMEBOOK': + raise error.TestError( + 'This test is not supported on %s' % dut_type) self.autotest_client = autotest.Autotest(self.host) # Start as powered on