def test_read_config_list(self):
     system_item_list_file = os.path.join(self.testdata_dir,
                                          'merge_config_system_item_list')
     system_item_list = read_config_list(system_item_list_file)
     expected_system_item_list = [
         'META/apkcerts.txt',
         'META/filesystem_config.txt',
         'META/root_filesystem_config.txt',
         'META/system_manifest.xml',
         'META/system_matrix.xml',
         'META/update_engine_config.txt',
         'PRODUCT/*',
         'ROOT/*',
         'SYSTEM/*',
     ]
     self.assertItemsEqual(system_item_list, expected_system_item_list)
Example #2
0
 def test_read_config_list(self):
     framework_item_list_file = os.path.join(
         self.testdata_dir, 'merge_config_framework_item_list')
     framework_item_list = read_config_list(framework_item_list_file)
     expected_framework_item_list = [
         'META/apkcerts.txt',
         'META/filesystem_config.txt',
         'META/root_filesystem_config.txt',
         'META/system_manifest.xml',
         'META/system_matrix.xml',
         'META/update_engine_config.txt',
         'PRODUCT/*',
         'ROOT/*',
         'SYSTEM/*',
     ]
     self.assertEqual(sorted(framework_item_list),
                      sorted(expected_framework_item_list))