parameters: (env)
docstring: Add default build and test flags required for TF tests to bazelrc.
docstring_summary: Add default build and test flags required for TF tests to bazelrc.
docstring_tokens: Add default build and test flags required for TF tests to bazelrc .
function: def system_specific_test_config(env):
    """Add default build and test flags required for TF tests to bazelrc."""
    write_to_bazelrc('test --flaky_test_attempts=3')
    write_to_bazelrc('test --test_size_filters=small,medium')
    write_to_bazelrc(
        'test --test_tag_filters=-benchmark-test,-no_oss,-oss_serial')
    write_to_bazelrc('test --build_tag_filters=-benchmark-test,-no_oss')
    if is_windows():
      if env.get('TF_NEED_CUDA', None) == '1':
        write_to_bazelrc(
            'test --test_tag_filters=-no_windows,-no_windows_gpu,-no_gpu')
        write_to_bazelrc(
            'test --build_tag_filters=-no_windows,-no_windows_gpu,-no_gpu')
      else:
        write_to_bazelrc('test --test_tag_filters=-no_windows,-gpu')
        write_to_bazelrc('test --build_tag_filters=-no_windows,-gpu')
    elif is_macos():
      write_to_bazelrc('test --test_tag_filters=-gpu,-nomac,-no_mac')
      write_to_bazelrc('test --build_tag_filters=-gpu,-nomac,-no_mac')
    elif is_linux():
      if env.get('TF_NEED_CUDA', None) == '1':
        write_to_bazelrc('test --test_tag_filters=-no_gpu')
        write_to_bazelrc('test --build_tag_filters=-no_gpu')
        write_to_bazelrc('test --test_env=LD_LIBRARY_PATH')
      else:
        write_to_bazelrc('test --test_tag_filters=-gpu')
        write_to_bazelrc('test --build_tag_filters=-gpu')
function_tokens: def system_specific_test_config ( env ) : write_to_bazelrc ( 'test --flaky_test_attempts=3' ) write_to_bazelrc ( 'test --test_size_filters=small,medium' ) write_to_bazelrc ( 'test --test_tag_filters=-benchmark-test,-no_oss,-oss_serial' ) write_to_bazelrc ( 'test --build_tag_filters=-benchmark-test,-no_oss' ) if is_windows ( ) : if env . get ( 'TF_NEED_CUDA' , None ) == '1' : write_to_bazelrc ( 'test --test_tag_filters=-no_windows,-no_windows_gpu,-no_gpu' ) write_to_bazelrc ( 'test --build_tag_filters=-no_windows,-no_windows_gpu,-no_gpu' ) else : write_to_bazelrc ( 'test --test_tag_filters=-no_windows,-gpu' ) write_to_bazelrc ( 'test --build_tag_filters=-no_windows,-gpu' ) elif is_macos ( ) : write_to_bazelrc ( 'test --test_tag_filters=-gpu,-nomac,-no_mac' ) write_to_bazelrc ( 'test --build_tag_filters=-gpu,-nomac,-no_mac' ) elif is_linux ( ) : if env . get ( 'TF_NEED_CUDA' , None ) == '1' : write_to_bazelrc ( 'test --test_tag_filters=-no_gpu' ) write_to_bazelrc ( 'test --build_tag_filters=-no_gpu' ) write_to_bazelrc ( 'test --test_env=LD_LIBRARY_PATH' ) else : write_to_bazelrc ( 'test --test_tag_filters=-gpu' ) write_to_bazelrc ( 'test --build_tag_filters=-gpu' )