Skip to content

Commit 9b03bb7

Browse files
committed
test=release/1.0.0
1 parent 8d16de7 commit 9b03bb7

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

paddle/legacy/trainer/tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ endfunction()
1616
trainer_test(test_Compare)
1717
trainer_test(test_PyDataProviderWrapper)
1818
trainer_test(test_recurrent_machine_generation)
19-
trainer_test(test_Trainer)
19+
if(NOT APPLE)
20+
trainer_test(test_Trainer)
21+
else()
22+
message(WARNING "These tests has been disabled in OSX for random fail: \n test_Trainer")
23+
endif()
2024

2125
############### test_TrainerOnePass ##########################
2226
if(WITH_PYTHON)

python/paddle/fluid/tests/book/high-level-api/recognize_digits/CMakeLists.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
22
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
33

44
# default test
5-
foreach(src ${TEST_OPS})
6-
py_test(${src} SRCS ${src}.py)
7-
endforeach()
5+
if(NOT APPLE)
6+
foreach(src ${TEST_OPS})
7+
py_test(${src} SRCS ${src}.py)
8+
endforeach()
9+
else()
10+
foreach(src ${TEST_OPS})
11+
if(${src} STREQUAL "test_recognize_digits_conv")
12+
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
13+
else()
14+
py_test(${src} SRCS ${src}.py)
15+
endif()
16+
endforeach()
17+
endif()

0 commit comments

Comments
 (0)