Esempio n. 1
0
    def setUp(self):
        self.testdata_dir = test_utils.get_testdata_dir()
        # The default payload signing key.
        self.payload_key = os.path.join(self.testdata_dir, 'testkey.key')
        self.apex_with_apk = os.path.join(self.testdata_dir, 'has_apk.apex')

        common.OPTIONS.search_path = test_utils.get_search_path()
Esempio n. 2
0
  def setUp(self):
    self.testdata_dir = test_utils.get_testdata_dir()
    self.assertTrue(os.path.exists(self.testdata_dir))

    # Reset the global options as in ota_from_target_files.py.
    common.OPTIONS.incremental_source = None
    common.OPTIONS.downgrade = False
    common.OPTIONS.retrofit_dynamic_partitions = False
    common.OPTIONS.timestamp = False
    common.OPTIONS.wipe_user_data = False
    common.OPTIONS.no_signing = False
    common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey')
    common.OPTIONS.key_passwords = {
        common.OPTIONS.package_key : None,
    }

    common.OPTIONS.search_path = test_utils.get_search_path()
  def setUp(self):
    self.testdata_dir = test_utils.get_testdata_dir()
    self.assertTrue(os.path.exists(self.testdata_dir))

    # Reset the global options as in ota_from_target_files.py.
    common.OPTIONS.incremental_source = None
    common.OPTIONS.downgrade = False
    common.OPTIONS.timestamp = False
    common.OPTIONS.wipe_user_data = False
    common.OPTIONS.no_signing = False
    common.OPTIONS.package_key = os.path.join(self.testdata_dir, 'testkey')
    common.OPTIONS.key_passwords = {
        common.OPTIONS.package_key : None,
    }

    common.OPTIONS.search_path = test_utils.get_search_path()
    self.assertIsNotNone(common.OPTIONS.search_path)
Esempio n. 4
0
    def setUp(self):
        self.testdata_dir = test_utils.get_testdata_dir()
        self.assertTrue(os.path.exists(self.testdata_dir))

        common.OPTIONS.search_path = test_utils.get_search_path()