(self, command, env)
| 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 | |
| 146 | class TTYTestConfiguration(test.TestConfiguration): |
nothing calls this directly
no test coverage detected