From 19ca9762db3d44a37ce998f5de2d3a416c7a23e7 Mon Sep 17 00:00:00 2001 From: jonyguo Date: Sun, 27 Sep 2020 15:34:50 +0800 Subject: [PATCH] skip graphdata distributed test case when asan mode --- tests/ut/python/dataset/test_graphdata_distributed.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ut/python/dataset/test_graphdata_distributed.py b/tests/ut/python/dataset/test_graphdata_distributed.py index 5fa9efc57d..06bc8d460f 100644 --- a/tests/ut/python/dataset/test_graphdata_distributed.py +++ b/tests/ut/python/dataset/test_graphdata_distributed.py @@ -13,6 +13,7 @@ # limitations under the License. # ============================================================================== +import os import random import time from multiprocessing import Process @@ -81,6 +82,11 @@ def test_graphdata_distributed(): """ Test distributed """ + ASAN = os.environ.get('ASAN_OPTIONS') + if ASAN: + logger.info("skip the graphdata distributed when asan mode") + return + logger.info('test distributed.\n') server_port = random.randint(10000, 60000)