Skip to content

Commit

Permalink
Speculative workaround for macOS test reporting issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jul 24, 2024
1 parent 8963768 commit b2adb67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/2689.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A potential workaround for macOS CI result reporting was added.
9 changes: 6 additions & 3 deletions testbed/tests/testbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit b2adb67

Please sign in to comment.