MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / PrintOutput

Method PrintOutput

kratos/python_scripts/testing/utilities.py:112–120  ·  view source on GitHub ↗

Prints the output of the process line by line. This prevents the github actions log from buffering too much and casuing output to be printed out of order. Ideallt this should detect if we are in the ci and only use the line/print in that case.

(self, output, channel)

Source from the content-addressed store, hash-verified

110 self.exitCodes = {}
111
112 def PrintOutput(self, output, channel):
113 ''' Prints the output of the process line by line.
114 This prevents the github actions log from buffering too much and casuing output to be printed out of order.
115
116 Ideallt this should detect if we are in the ci and only use the line/print in that case.
117 '''
118
119 for line in output.decode('utf8').split('\n'):
120 print(line, file=channel)
121
122 def TestToAppName(self, application):
123 ''' Converts the name of a test suit into an application

Callers 3

_RunTestMethod · 0.95
OutputSolutionStepMethod · 0.45
read_stl.pyFile · 0.45

Calls 1

printFunction · 0.50

Tested by

no test coverage detected