(arg: tuple[int, str])
| 84 | failed_commands = [] |
| 85 | |
| 86 | def process_command(arg: tuple[int, str]) -> None: |
| 87 | i, command = arg |
| 88 | |
| 89 | # Display the status. |
| 90 | click.secho( |
| 91 | f"\nRunning {section_header} {i + 1}/{len(commands)} : {_command_to_string(command)}", |
| 92 | bold=True, |
| 93 | ) |
| 94 | |
| 95 | # Run the command. |
| 96 | result = subprocess.call( |
| 97 | command.split(" "), stdout=subprocess.DEVNULL, stderr=None |
| 98 | ) |
| 99 | if result != 0: |
| 100 | with lock: |
| 101 | failed_commands.append(command) |
| 102 | |
| 103 | pool.map(process_command, enumerate(commands)) |
| 104 | return failed_commands |
nothing calls this directly
no test coverage detected
searching dependent graphs…