Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / chromite / cbuildbot / commands_unittest.py
index cca76db..f18e5b5 100755 (executable)
@@ -229,6 +229,12 @@ class HWLabCommandsTest(cros_build_lib_unittest.RunCommandTestCase):
     self.assertRaises(failures_lib.TestLabFailure, commands.RunHWTestSuite,
                       self._build, self._suite, self._board, debug=False)
 
+  def testRunHWTestBoardNotAvailable(self):
+    """Test RunHWTestSuite when BOARD_NOT_AVAILABLE is returned."""
+    self.rc.SetDefaultCmdResult(returncode=5)
+    self.assertRaises(commands.BoardNotAvailable, commands.RunHWTestSuite,
+                      self._build, self._suite, self._board, debug=False)
+
 
 class CBuildBotTest(cros_build_lib_unittest.RunCommandTempDirTestCase):
   """Test general cbuildbot command methods."""