From 3a9c43a6d70be3ef3c177b4df1c23a4721cf4292 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Thu, 13 Apr 2023 23:51:46 -0400 Subject: [PATCH] test: mark test-cluster-primary-error flaky on asan PR-URL: https://github.com/nodejs/node/pull/47422 Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: James M Snell Reviewed-By: Moshe Atlow --- test/sequential/sequential.status | 4 ++++ tools/test.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/test/sequential/sequential.status b/test/sequential/sequential.status index 5cefcb95773bed..5487281311c6f8 100644 --- a/test/sequential/sequential.status +++ b/test/sequential/sequential.status @@ -41,3 +41,7 @@ test-tls-securepair-client: PASS, FLAKY [$arch==s390x] # https://github.com/nodejs/node/issues/41286 test-performance-eventloopdelay: PASS, FLAKY + +[$asan==on] +# https://github.com/nodejs/node/issues/39655 +test-cluster-primary-error: PASS, FLAKY diff --git a/tools/test.py b/tools/test.py index 90bd1257f5af79..14ed3ea0893670 100755 --- a/tools/test.py +++ b/tools/test.py @@ -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