From 4176364aef0510f61db2401e02d474ce93b06f8f Mon Sep 17 00:00:00 2001 From: Dave Hunt Date: Sun, 9 Dec 2012 23:51:45 +0000 Subject: [PATCH] Fail with an appropriate message if app launch fails --- gaiatest/gaia_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gaiatest/gaia_test.py b/gaiatest/gaia_test.py index c0483f2b..09350172 100644 --- a/gaiatest/gaia_test.py +++ b/gaiatest/gaia_test.py @@ -49,6 +49,7 @@ def __init__(self, marionette): def launch(self, name, switch_to_frame=True, url=None): self.marionette.switch_to_frame() result = self.marionette.execute_async_script("GaiaApps.launchWithName('%s')" % name) + assert result, "Failed to launch app with name '%s'" % name app = GaiaApp(frame_id=result.get('frame'), src=result.get('src'), name=result.get('name'),