Add default build and test flags required for TF tests to bazelrc.
(env)
| 1216 | |
| 1217 | |
| 1218 | def system_specific_test_config(env): |
| 1219 | """Add default build and test flags required for TF tests to bazelrc.""" |
| 1220 | write_to_bazelrc('test --flaky_test_attempts=3') |
| 1221 | write_to_bazelrc('test --test_size_filters=small,medium') |
| 1222 | write_to_bazelrc( |
| 1223 | 'test --test_tag_filters=-benchmark-test,-no_oss,-oss_serial') |
| 1224 | write_to_bazelrc('test --build_tag_filters=-benchmark-test,-no_oss') |
| 1225 | if is_windows(): |
| 1226 | if env.get('TF_NEED_CUDA', None) == '1': |
| 1227 | write_to_bazelrc( |
| 1228 | 'test --test_tag_filters=-no_windows,-no_windows_gpu,-no_gpu') |
| 1229 | write_to_bazelrc( |
| 1230 | 'test --build_tag_filters=-no_windows,-no_windows_gpu,-no_gpu') |
| 1231 | else: |
| 1232 | write_to_bazelrc('test --test_tag_filters=-no_windows,-gpu') |
| 1233 | write_to_bazelrc('test --build_tag_filters=-no_windows,-gpu') |
| 1234 | elif is_macos(): |
| 1235 | write_to_bazelrc('test --test_tag_filters=-gpu,-nomac,-no_mac') |
| 1236 | write_to_bazelrc('test --build_tag_filters=-gpu,-nomac,-no_mac') |
| 1237 | elif is_linux(): |
| 1238 | if env.get('TF_NEED_CUDA', None) == '1': |
| 1239 | write_to_bazelrc('test --test_tag_filters=-no_gpu') |
| 1240 | write_to_bazelrc('test --build_tag_filters=-no_gpu') |
| 1241 | write_to_bazelrc('test --test_env=LD_LIBRARY_PATH') |
| 1242 | else: |
| 1243 | write_to_bazelrc('test --test_tag_filters=-gpu') |
| 1244 | write_to_bazelrc('test --build_tag_filters=-gpu') |
| 1245 | |
| 1246 | |
| 1247 | def set_system_libs_flag(environ_cp): |
no test coverage detected