()
| 121 | |
| 122 | |
| 123 | def main() -> NoReturn: |
| 124 | if len(sys.argv) != 2: |
| 125 | print("usage: python -m test.libregrtest.worker JSON") |
| 126 | sys.exit(1) |
| 127 | worker_json = sys.argv[1] |
| 128 | |
| 129 | tmp_dir = get_temp_dir() |
| 130 | # get_temp_dir() can be different in the worker and the parent process. |
| 131 | # For example, if --tempdir option is used. |
| 132 | os.makedirs(tmp_dir, exist_ok=True) |
| 133 | work_dir = get_work_dir(tmp_dir, worker=True) |
| 134 | |
| 135 | with exit_timeout(): |
| 136 | with os_helper.temp_cwd(work_dir, quiet=True): |
| 137 | worker_process(worker_json) |
| 138 | |
| 139 | |
| 140 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…