parameters: (binary_path, output_dir, _)
docstring: Run test with options.
  
    Args:
      binary_path: The path of unittest.
      output_dir: The directory of output results.
      _: Unused arg for the compatibility with RunTest.
docstring_summary: Run test with options.
docstring_tokens: Run test with options .
function: def RunTestOnIos(binary_path, output_dir, _):
    """Run test with options.
  
    Args:
      binary_path: The path of unittest.
      output_dir: The directory of output results.
      _: Unused arg for the compatibility with RunTest.
    """
    iossim = '%s/third_party/iossim/iossim' % MOZC_ROOT
    binary_filename = os.path.basename(binary_path)
    tmp_xml_path = os.path.join(output_dir, '%s.xml.running' % binary_filename)
    env_options = [
        '-e', 'GUNIT_OUTPUT=xml:%s' % tmp_xml_path,
        '-e', 'GTEST_OUTPUT=xml:%s' % tmp_xml_path,
    ]
    RunOrDie([iossim] + env_options + [binary_path])
  
    xml_path = os.path.join(output_dir, '%s.xml' % binary_filename)
    CopyFile(tmp_xml_path, xml_path)
    RemoveFile(tmp_xml_path)
function_tokens: def RunTestOnIos ( binary_path , output_dir , _ ) : iossim = '%s/third_party/iossim/iossim' % MOZC_ROOT binary_filename = os . path . basename ( binary_path ) tmp_xml_path = os . path . join ( output_dir , '%s.xml.running' % binary_filename ) env_options = [ '-e' , 'GUNIT_OUTPUT=xml:%s' % tmp_xml_path , '-e' , 'GTEST_OUTPUT=xml:%s' % tmp_xml_path , ] RunOrDie ( [ iossim ] + env_options + [ binary_path ] ) xml_path = os . path . join ( output_dir , '%s.xml' % binary_filename ) CopyFile ( tmp_xml_path , xml_path ) RemoveFile ( tmp_xml_path )