diff --git a/include/syscap_define.h b/include/syscap_define.h index c894149f208dc2f11cea21a5a942203088888b4a..42b3b1a6450cded63c6f063113c14dc606d4a8e3 100644 --- a/include/syscap_define.h +++ b/include/syscap_define.h @@ -246,6 +246,7 @@ typedef enum SystemCapabilityNum { SECURITY_CRYPTOFRAMEWORK, // Add here MULTIMODALINPUT_INPUT_COOPERATOR, + ABILITY_ABILITYRUNTIME_QUICKFIX, SYSCAP_NUM_MAX = 960 } SyscapNum; @@ -469,6 +470,7 @@ const static SyscapWithNum g_arraySyscap[] = { {"SystemCapability.Security.SecurityGuard", SECURITY_SECURITYGUARD}, {"SystemCapability.Security.CryptoFramework", SECURITY_CRYPTOFRAMEWORK}, {"SystemCapability.MultimodalInput.Input.Cooperator", MULTIMODALINPUT_INPUT_COOPERATOR}, + {"SystemCapability.Ability.AbilityRuntime.QuickFix", ABILITY_ABILITYRUNTIME_QUICKFIX}, }; #ifdef __cplusplus diff --git a/test/unittest/common/BUILD.gn b/test/unittest/common/BUILD.gn index 15937b319860be41efbaae6fb6d5fd779f9ac44e..aa33c11abf1ea8532a1e6669b47fdfad36e4307c 100644 --- a/test/unittest/common/BUILD.gn +++ b/test/unittest/common/BUILD.gn @@ -44,7 +44,7 @@ if (defined(ohos_lite)) { deps = [ "//base//hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", - "//test/developertest/third_party/lib/cpp:gtest_main", + "//test/testfwk/developer_test/third_party/lib/cpp:gtest_main", "//third_party/bounds_checking_function:libsec_static", ] diff --git a/tools/syscap_check.py b/tools/syscap_check.py index a4932aab04230e8143c260a6cdefb0b900473c05..e2b97facd49aca5b8879bede98a360f8012657bb 100644 --- a/tools/syscap_check.py +++ b/tools/syscap_check.py @@ -78,15 +78,15 @@ def read_value_from_json(filepath: str, if not os.path.isfile(filepath): print('error: "{}" is not a file.') return - f = open(filepath, 'r') - data = json.load(f) - for key in key_hierarchy: - try: - data = data[key] - except KeyError: - return - finally: - f.close() + with open(filepath, 'r', encoding='utf-8') as f: + data = json.load(f) + for key in key_hierarchy: + try: + data = data[key] + except KeyError: + return + finally: + pass data = [post_handler(x) for x in data if len(x) != 0 and not x.isspace()] if len(data) != 0: result_dict[filepath] = data