Skip to content
Snippets Groups Projects

Fix unit tests hanging when there's an exception in a sandbox run

Merged richardmaw-codethink requested to merge richardmaw/fix-unit-test-hang-on-crash into master

Fixes #298 (closed)

Rather than having to go through extra effort to reproduce and debug when this happens, fixing the hang lets us see the cause during automated tests.

It's possible that it would be neater to make buildstream._signals.terminator call the cleanup function as well during __exit__. It would reduce the scope of the race condition between removing the signal handler and calling the cleanup manually, but that just moves it to inside buildstream._signals.terminator, so a more complicated solution would be required.

Merge request reports

Pipeline #20395088 passed

Pipeline passed for e3e72616 on richardmaw/fix-unit-test-hang-on-crash

Merged by Tristan Van BerkomTristan Van Berkom 6 years ago (Apr 12, 2018 1:38pm UTC)

Loading

Pipeline #20396164 passed

Pipeline passed for e3e72616 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading