diff --git a/changes/2689.misc.rst b/changes/2689.misc.rst new file mode 100644 index 0000000000..9f79d3a708 --- /dev/null +++ b/changes/2689.misc.rst @@ -0,0 +1 @@ +A potential workaround for macOS CI result reporting was added. diff --git a/testbed/tests/testbed.py b/testbed/tests/testbed.py index 23a262b1e1..40c2d01d32 100644 --- a/testbed/tests/testbed.py +++ b/testbed/tests/testbed.py @@ -102,9 +102,12 @@ def run_tests(app, cov, args, report_coverage, run_slow, running_in_ci): traceback.print_exc() app.returncode = 1 finally: - print(f">>>>>>>>>> EXIT {app.returncode} <<<<<<<<<<") - # Add a short pause to make sure any log tailing gets a chance to flush - time.sleep(0.5) + # Add a short pause to make sure any log tailing gets a chance to flush. Run a + # couple of times to make sure any log streaming dropouts don't prevent + # Briefcase from seeing the output. + for i in range(0, 6): + print(f">>>>>>>>>> EXIT {app.returncode} <<<<<<<<<<") + time.sleep(0.5) app.loop.call_soon_threadsafe(app.exit)