Skip to content

Commit 389be3d

Browse files
committed
DEBUG
1 parent 99b4a3a commit 389be3d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Lib/test/libregrtest/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,13 @@ def _run_tests(self, selected: TestTuple, tests: TestList | None) -> int:
421421
self.first_runtests = runtests
422422
self.logger.set_tests(runtests)
423423

424+
print()
425+
print("tempfile.gettempdir:", tempfile.gettempdir())
426+
print("self.tmp_dir:", self.tmp_dir)
427+
print("runtests.work_dir:", runtests.work_dir)
428+
print("cwd:", os.getcwd())
429+
print()
430+
424431
setup_process()
425432

426433
self.logger.start_load_tracker()

Lib/test/libregrtest/worker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ def main():
102102

103103
with exit_timeout():
104104
runtests = RunTests.from_json(worker_json)
105+
cwd = os.getcwd()
105106
with os_helper.change_cwd(runtests.work_dir):
107+
msg = f"worker {runtests.tests[0]} (pid {os.getpid()}): {cwd}"
108+
cwd2 = os.getcwd()
109+
if cwd2 != cwd:
110+
msg = f"{cwd} => {cwd2}"
111+
print(msg)
106112
worker_process(runtests)
107113

108114

0 commit comments

Comments
 (0)