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