(self)
| 117 | return self |
| 118 | |
| 119 | def run_async(self): |
| 120 | assert self.subprocess is None, "You forgot to call wait()" |
| 121 | cmd = self._collect_cmd() |
| 122 | self.subprocess = subprocess.Popen( |
| 123 | cmd, stdout=self.output, stderr=self.error, env=os.environ |
| 124 | ) |
| 125 | |
| 126 | self.logger.info( |
| 127 | f"Run generator tool [{self.get_build_version()}]:" f" {' '.join(cmd)} " |
| 128 | ) |
| 129 | return self |
| 130 | |
| 131 | def wait(self): |
| 132 | code = self.subprocess.wait() |
no test coverage detected