onednn dfx testcase skip win and mac

This commit is contained in:
zuochuanyong 2022-02-10 11:07:43 +08:00
parent f7fac5c9fa
commit 9aa370ddda
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# ============================================================================
import os
import re
import platform
from collections import defaultdict
import pytest
import mindspore.context as context
@ -31,6 +32,9 @@ def test_onednn_dfx_log():
Description: Use 'Python -O -m pytest -s xxx.py' to enable __debug__
Expectation: begin_cnt == end_cnt
"""
if platform.system().lower() != 'linux':
return
os.environ['GLOG_v'] = '0'
log_name = './onednn_dfx.log'
# need cd to current dir