odoo/odoo#231942

Created by Framework (ORM), Xavier Dollé (xdo)
Merged at 5f7f138c09f30f02f10b81e9b201c8740fe379a9

Statuses:

label
odoo-dev:17.0-catch-remaining-processes-xdo
head
188f87f512f9baff4445590c4ea90c79635f7dd8
merged
2 weeks ago by Framework (ORM), Xavier Dollé (xdo)
odoo/odoo
17.0 #231942
18.0 #232313
saas-18.2 #232339
saas-18.3 #232362
saas-18.4 #232392
19.0 #232407
master #232424

[FIX] tests: catch remain processes

In some case a process could remain aive at the end of a tests In addition to possible race condition, this can also cause a program to remain stuck at the end of the tests.

This commit proposes to
- catch all remaining processes at the end of a base case.
- log a message if a process is found at the shutdown of the server.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr