MCPcopy Index your code
hub / github.com/nodejs/node / RunCommand

Method RunCommand

test/pseudo-tty/testcfg.py:127–143  ·  view source on GitHub ↗
(self, command, env)

Source from the content-addressed store, hash-verified

125 + open(self.expected).read())
126
127 def RunCommand(self, command, env):
128 fd = None
129 if self.input is not None and exists(self.input):
130 fd = os.open(self.input, os.O_RDONLY)
131 full_command = self.context.processor(command)
132 full_command = [sys.executable, PTY_HELPER] + full_command
133 output = test.Execute(full_command,
134 self.context,
135 self.context.GetTimeout(self.mode),
136 env,
137 stdin=fd)
138 if fd is not None:
139 os.close(fd)
140 return test.TestOutput(self,
141 full_command,
142 output,
143 self.context.store_unexpected_output)
144
145
146class TTYTestConfiguration(test.TestConfiguration):

Callers

nothing calls this directly

Calls 4

existsFunction · 0.85
GetTimeoutMethod · 0.80
openMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected