(cmd)
| 190 | |
| 191 | |
| 192 | def run_command(cmd): |
| 193 | logger.info('Running command: %s' % ' '.join(cmd)) |
| 194 | response = subprocess.run( |
| 195 | cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
| 196 | try: |
| 197 | response.check_returncode() |
| 198 | logger.info(response.stdout.decode('utf8')) |
| 199 | except subprocess.CalledProcessError as error: |
| 200 | logger.error( |
| 201 | 'stdout: %s, stderr: %s' % |
| 202 | (response.stdout.decode('utf8'), error.stderr.decode('utf8'))) |
| 203 | |
| 204 | |
| 205 | def install_packages(pkgs): |
no test coverage detected
searching dependent graphs…