summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler <tyler.baker@linaro.org>2014-09-24 20:20:54 (GMT)
committerTyler <tyler.baker@linaro.org>2014-09-24 20:20:54 (GMT)
commitddf18fa4f2514b22ac2c4bef441dc326a3886242 (patch)
tree14d4a705525657d9ec5ba73ab2664552b096b587
parentff305b8876fe2d6e9d45d23c1d0452b18047f748 (diff)
downloadlava-dispatcher-ddf18fa4f2514b22ac2c4bef441dc326a3886242.tar.gz
lava-dispatcher-ddf18fa4f2514b22ac2c4bef441dc326a3886242.tar.xz
fastboot: raise CriticalError when deployment fails
Change-Id: I1309cad7ec7e03cec67b6e36ef2bad5c81405aca
-rw-r--r--lava_dispatcher/device/fastboot.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lava_dispatcher/device/fastboot.py b/lava_dispatcher/device/fastboot.py
index ce12793..399ba62 100644
--- a/lava_dispatcher/device/fastboot.py
+++ b/lava_dispatcher/device/fastboot.py
@@ -85,6 +85,11 @@ class FastbootTarget(Target):
attempts += 1
continue
+ if not deployed:
+ msg = "Deployment Failed"
+ logging.critical(msg)
+ raise CriticalError(msg)
+
def deploy_android(self, boot, system, userdata, rootfstype,
bootloadertype, target_type):
self._target_type = target_type
@@ -107,6 +112,11 @@ class FastbootTarget(Target):
attempts += 1
continue
+ if not deployed:
+ msg = "Deployment Failed"
+ logging.critical(msg)
+ raise CriticalError(msg)
+
def get_device_version(self):
# this is tricky, because fastboot does not have a visible version
# number. For now let's use just the adb version number.