diff options
Diffstat (limited to 'bitbake/lib/toaster/tests/functional/functional_helpers.py')
-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): |