Skip to content

Tezt: allow to register clean up callbacks

François Thiré requested to merge francois@clean-up-problem into master

Description / Motivation

Assume two processes are run A and B in parallel.

Assume A fails unexpectedly by raising the Tezt exception Failed. The process B won't be terminated by Tezt.

This is problematic if B is a daemon, in that case, it will never end.

To solve this issue, a Process.clean_up function is already implemented but never called.

This MR suggests a quite hackish design to show one way to solve this, but there might be a better way. I did not invest time to document it since I suspect @romain.nl will prefer and suggest another and better design :p

But if we settle on this design, I will take time to write tests and document it.

Merge request reports