1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +from b2g_update_test import B2GUpdateTestCase, OTA, FOTA 1.5 +import os 1.6 + 1.7 +update_test_dir = os.path.dirname(os.path.dirname(__file__)) 1.8 + 1.9 +class UpdateTestOTASimple(B2GUpdateTestCase): 1.10 + def setUp(self): 1.11 + prefs = { 1.12 + "b2g.update.apply-idle-timeout": 0 1.13 + } 1.14 + mar_path = os.path.join(update_test_dir, "unit", "data", "simple.mar") 1.15 + self.stage_update(complete_mar=mar_path, prefs=prefs) 1.16 + B2GUpdateTestCase.setUp(self) 1.17 + 1.18 + def test_ota_simple(self): 1.19 + self.marionette.set_script_timeout(60 * 1000 * 5) 1.20 + 1.21 + ota_simple_js = os.path.join(os.path.dirname(__file__), 1.22 + "update_test_ota_simple.js") 1.23 + self.execute_update_test(ota_simple_js, apply=OTA)