diff -r 000000000000 -r 6474c204b198 toolkit/mozapps/update/tests/marionette/update_smoketest_ota_simple.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/mozapps/update/tests/marionette/update_smoketest_ota_simple.py Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,21 @@ +from b2g_update_test import B2GUpdateSmokeTestCase, OTA, FOTA +import os + +this_dir = os.path.dirname(__file__) + +class OTASimple(B2GUpdateSmokeTestCase): + JS_PATH = os.path.join(this_dir, "update_smoketest_ota_simple.js") + START_WITH_BUILD = "start" + STAGE_PREFS = { + "b2g.update.apply-idle-timeout": 0, + "b2g.update.apply-prompt-timeout": 5 * 60 * 1000 + } + TIMEOUT = 5 * 60 * 1000 + + def test_ota_simple_complete(self): + self.stage_update(build="finish", mar="complete") + self.execute_smoketest() + + def test_ota_simple_partial(self): + self.stage_update(build="finish", mar="partial") + self.execute_smoketest()