diff -r 000000000000 -r 6474c204b198 toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,20 @@ +from b2g_update_test import B2GUpdateTestCase, OTA, FOTA +import os + +update_test_dir = os.path.dirname(os.path.dirname(__file__)) + +class UpdateTestOTASimple(B2GUpdateTestCase): + def setUp(self): + prefs = { + "b2g.update.apply-idle-timeout": 0 + } + mar_path = os.path.join(update_test_dir, "unit", "data", "simple.mar") + self.stage_update(complete_mar=mar_path, prefs=prefs) + B2GUpdateTestCase.setUp(self) + + def test_ota_simple(self): + self.marionette.set_script_timeout(60 * 1000 * 5) + + ota_simple_js = os.path.join(os.path.dirname(__file__), + "update_test_ota_simple.js") + self.execute_update_test(ota_simple_js, apply=OTA)