File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
paddle/legacy/trainer/tests
python/paddle/fluid/tests/book/high-level-api/recognize_digits Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,11 @@ endfunction()
16
16
trainer_test (test_Compare )
17
17
trainer_test (test_PyDataProviderWrapper )
18
18
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 ()
20
24
21
25
############### test_TrainerOnePass ##########################
22
26
if (WITH_PYTHON )
Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
2
2
string (REPLACE ".py" "" TEST_OPS "${TEST_OPS} " )
3
3
4
4
# 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 ()
You can’t perform that action at this time.
0 commit comments