toolkit/mozapps/update/tests/marionette/update_smoketest_ota_simple.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/update/tests/marionette/update_smoketest_ota_simple.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +from b2g_update_test import B2GUpdateSmokeTestCase, OTA, FOTA
     1.5 +import os
     1.6 +
     1.7 +this_dir = os.path.dirname(__file__)
     1.8 +
     1.9 +class OTASimple(B2GUpdateSmokeTestCase):
    1.10 +    JS_PATH          = os.path.join(this_dir, "update_smoketest_ota_simple.js")
    1.11 +    START_WITH_BUILD = "start"
    1.12 +    STAGE_PREFS      = {
    1.13 +        "b2g.update.apply-idle-timeout": 0,
    1.14 +        "b2g.update.apply-prompt-timeout": 5 * 60 * 1000
    1.15 +    }
    1.16 +    TIMEOUT     = 5 * 60 * 1000
    1.17 +
    1.18 +    def test_ota_simple_complete(self):
    1.19 +        self.stage_update(build="finish", mar="complete")
    1.20 +        self.execute_smoketest()
    1.21 +
    1.22 +    def test_ota_simple_partial(self):
    1.23 +        self.stage_update(build="finish", mar="partial")
    1.24 +        self.execute_smoketest()

mercurial