MCPcopy Create free account
hub / github.com/apache/solr / run

Function run

dev-tools/scripts/smokeTestRelease.py:512–518  ·  view source on GitHub ↗
(command, logFile)

Source from the content-addressed store, hash-verified

510
511def printFileContents(fileName):
512
513 # Assume log file was written in system's default encoding, but
514 # even if we are wrong, we replace errors ... the ASCII chars
515 # (which is what we mostly care about eg for the test seed) should
516 # still survive:
517 txt = codecs.open(fileName, 'r', encoding=sys.getdefaultencoding(), errors='replace').read()
518
519 # Encode to our output encoding (likely also system's default
520 # encoding):
521 bytes = txt.encode(sys.stdout.encoding, errors='replace')

Callers 6

checkSigsFunction · 0.70
stopGpgAgentFunction · 0.70
unpackFunction · 0.70
getBinaryDistFilesFunction · 0.70
verifyMavenSigsFunction · 0.70
run_javaFunction · 0.70

Calls 2

cygwinifyPathsFunction · 0.85
printFileContentsFunction · 0.85

Tested by

no test coverage detected