diff options
| author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-12-08 02:53:16 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-08 17:17:42 +0000 |
| commit | f6cc0b360f5d6f7b50c6754fb2a215ad95fb63f1 (patch) | |
| tree | 9949f618644af19401a171a2f9aeba36a499e655 /bitbake/lib/toaster | |
| parent | ad2f5a359e7368f0bf1a6d7d2f01a0f8080387d7 (diff) | |
| download | poky-f6cc0b360f5d6f7b50c6754fb2a215ad95fb63f1.tar.gz | |
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>
Diffstat (limited to 'bitbake/lib/toaster')
| -rw-r--r-- | bitbake/lib/toaster/tests/functional/functional_helpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/tests/functional/functional_helpers.py b/bitbake/lib/toaster/tests/functional/functional_helpers.py index b80d403bec..c37c5f8d2f 100644 --- a/bitbake/lib/toaster/tests/functional/functional_helpers.py +++ b/bitbake/lib/toaster/tests/functional/functional_helpers.py | |||
| @@ -33,11 +33,11 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase): | |||
| 33 | 33 | ||
| 34 | # start toaster | 34 | # start toaster |
| 35 | cmd = "bash -c 'source toaster start'" | 35 | cmd = "bash -c 'source toaster start'" |
| 36 | p = subprocess.Popen( | 36 | cls.p = subprocess.Popen( |
| 37 | cmd, | 37 | cmd, |
| 38 | cwd=os.environ.get("BUILDDIR"), | 38 | cwd=os.environ.get("BUILDDIR"), |
| 39 | shell=True) | 39 | shell=True) |
| 40 | if p.wait() != 0: | 40 | if cls.p.wait() != 0: |
| 41 | raise RuntimeError("Can't initialize toaster") | 41 | raise RuntimeError("Can't initialize toaster") |
| 42 | 42 | ||
| 43 | super(SeleniumFunctionalTestCase, cls).setUpClass() | 43 | super(SeleniumFunctionalTestCase, cls).setUpClass() |
| @@ -58,6 +58,7 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase): | |||
| 58 | with open(os.path.join(builddir, '.runbuilds.pid'), 'r') as f: | 58 | with open(os.path.join(builddir, '.runbuilds.pid'), 'r') as f: |
| 59 | runbuilds_pid = int(f.read()) | 59 | runbuilds_pid = int(f.read()) |
| 60 | os.kill(runbuilds_pid, signal.SIGTERM) | 60 | os.kill(runbuilds_pid, signal.SIGTERM) |
| 61 | cls.p.kill() | ||
| 61 | 62 | ||
| 62 | 63 | ||
| 63 | def get_URL(self): | 64 | def get_URL(self): |
