Skip to content

Commit

Permalink
print output of successful workers
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Dec 30, 2023
1 parent e575325 commit e1acf1d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/import_hook/test_rust_file_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def test_concurrent_import() -> None:
p3 = pool.apply_async(run_python, kwds=args)

subprocess_error = False
output_1 = "None"
output_2 = "None"
output_3 = "None"

try:
output_1, duration_1 = p1.get()
Expand All @@ -150,16 +153,16 @@ def test_concurrent_import() -> None:
handle_called_process_error(e, "worker3")
subprocess_error = True

log("output 1")
log(output_1)
log("output 2")
log(output_2)
log("output 3")
log(output_3)

if subprocess_error:
raise RuntimeError("one or more worker processes failed")

log("output 1")
log(output_1)
log("output 2")
log(output_2)
log("output 3")
log(output_3)

num_compilations = 0
num_up_to_date = 0
num_waiting = 0
Expand Down

0 comments on commit e1acf1d

Please sign in to comment.