예제 #1
0
 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)
예제 #2
0
    def setUp(self):
        # Stage a phony update to get the http server up and running
        mar_path = os.path.join(update_test_dir, "unit", "data", "simple.mar")
        self.stage_update(complete_mar=mar_path)

        bad_xml = os.path.join(this_dir, "data", "bad.xml")
        err_cgi = os.path.join(this_dir, "data", "err.cgi")
        self.runner.adb.push(bad_xml, self.B2G_UPDATES + "/bad.xml")
        self.runner.adb.shell("mkdir " + self.B2G_UPDATES + "/cgi-bin")
        self.runner.adb.push(err_cgi, self.B2G_UPDATES + "/cgi-bin/err.cgi")
        self.runner.adb.shell("chmod 755 " + self.B2G_UPDATES + "/cgi-bin/err.cgi")

        B2GUpdateTestCase.setUp(self)
예제 #3
0
    def setUp(self):
        # Stage a phony update to get the http server up and running
        mar_path = os.path.join(update_test_dir, "unit", "data", "simple.mar")
        self.stage_update(complete_mar=mar_path)

        bad_xml = os.path.join(this_dir, "data", "bad.xml")
        err_cgi = os.path.join(this_dir, "data", "err.cgi")
        self.runner.adb.push(bad_xml, self.B2G_UPDATES + "/bad.xml")
        self.runner.adb.shell("mkdir " + self.B2G_UPDATES + "/cgi-bin")
        self.runner.adb.push(err_cgi, self.B2G_UPDATES + "/cgi-bin/err.cgi")
        self.runner.adb.shell("chmod 755 " + self.B2G_UPDATES +
                              "/cgi-bin/err.cgi")

        B2GUpdateTestCase.setUp(self)