test: mark test-cluster-primary-error flaky on asan

PR-URL: https://github.com/nodejs/node/pull/47422
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
Yagiz Nizipli 2023-04-13 23:51:46 -04:00 committed by GitHub
parent cd0fcf20c3
commit c94be4125b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -1581,6 +1581,10 @@ def get_env_type(vm, options_type, context):
return env_type
def get_asan_state():
return "on" if os.environ.get('ASAN') is not None else "off"
def Main():
parser = BuildOptions()
(options, args) = parser.parse_args()
@ -1673,6 +1677,7 @@ def Main():
'system': utils.GuessOS(),
'arch': vmArch,
'type': get_env_type(vm, options.type, context),
'asan': get_asan_state(),
}
test_list = root.ListTests([], path, context, arch, mode)
unclassified_tests += test_list