mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
bitbake: toaster/tests: Ensure to kill toaster process create for tests functional
Toaster background task runbuilds continu running when even if tests is done (Bitbake rev: e885863dffebab77f501a58df172926aafec5623) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ad2f5a359e
commit
f6cc0b360f
@@ -33,11 +33,11 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
|
||||
# start toaster
|
||||
cmd = "bash -c 'source toaster start'"
|
||||
p = subprocess.Popen(
|
||||
cls.p = subprocess.Popen(
|
||||
cmd,
|
||||
cwd=os.environ.get("BUILDDIR"),
|
||||
shell=True)
|
||||
if p.wait() != 0:
|
||||
if cls.p.wait() != 0:
|
||||
raise RuntimeError("Can't initialize toaster")
|
||||
|
||||
super(SeleniumFunctionalTestCase, cls).setUpClass()
|
||||
@@ -58,6 +58,7 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
with open(os.path.join(builddir, '.runbuilds.pid'), 'r') as f:
|
||||
runbuilds_pid = int(f.read())
|
||||
os.kill(runbuilds_pid, signal.SIGTERM)
|
||||
cls.p.kill()
|
||||
|
||||
|
||||
def get_URL(self):
|
||||
|
||||
Reference in New Issue
Block a user