Browse Source

!6929 skip gnn graphdata distributed test case when asan mode

Merge pull request !6929 from guozhijian/skip_graphdata_distributed_when_asan_mode
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
6b84a31972
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/ut/python/dataset/test_graphdata_distributed.py

+ 6
- 0
tests/ut/python/dataset/test_graphdata_distributed.py View File

@@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
# ============================================================================== # ==============================================================================


import os
import random import random
import time import time
from multiprocessing import Process from multiprocessing import Process
@@ -81,6 +82,11 @@ def test_graphdata_distributed():
""" """
Test 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') logger.info('test distributed.\n')


server_port = random.randint(10000, 60000) server_port = random.randint(10000, 60000)


Loading…
Cancel
Save