]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/httpserver: Rework to avoid hangs and improve logging
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Nov 2018 09:33:28 +0000 (09:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 22:13:07 +0000 (22:13 +0000)
commit4eac9a5337d93b6cbd3916af97f62bb04881c9cd
tree524557eb3615860ffa1ec93d1efff4e4ac91abd8
parenta80498e62898110e2ed6b01cbb9f5dd85995d13b
oeqa/utils/httpserver: Rework to avoid hangs and improve logging

testimage.bbclass installs a SIGTERM handler which conflicts with the
use of multiprocessing here. This is paritcularly problematic if the http
service is terminated before its started and hence before its had a chance
to reset the default signal handler (as the code was written).

Instead, temporarily remove testimage's handler whilst forking the http process
which means the correct handler is installed and won't deadlock.

Also take the opportunity to add in some log messages about the server start
and shutdown so that future debugging is easier and its clearer what the code
is doing.

(From OE-Core rev: cc0471439aa0085ca87deccf061c5b676ef12388)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/runtime/cases/apt.py
meta/lib/oeqa/runtime/cases/dnf.py
meta/lib/oeqa/runtime/cases/opkg.py
meta/lib/oeqa/utils/httpserver.py