diff options
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/prservice.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/prservice.py b/meta/lib/oeqa/selftest/prservice.py index f22288eaf6..66638de8f8 100644 --- a/meta/lib/oeqa/selftest/prservice.py +++ b/meta/lib/oeqa/selftest/prservice.py | |||
@@ -9,9 +9,10 @@ import oeqa.utils.ftools as ftools | |||
9 | from oeqa.selftest.base import oeSelfTest | 9 | from oeqa.selftest.base import oeSelfTest |
10 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var | 10 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var |
11 | from oeqa.utils.decorators import testcase | 11 | from oeqa.utils.decorators import testcase |
12 | from oeqa.utils.network import get_free_port | ||
12 | 13 | ||
13 | class BitbakePrTests(oeSelfTest): | 14 | class BitbakePrTests(oeSelfTest): |
14 | 15 | ||
15 | def get_pr_version(self, package_name): | 16 | def get_pr_version(self, package_name): |
16 | pkgdata_dir = get_bb_var('PKGDATA_DIR') | 17 | pkgdata_dir = get_bb_var('PKGDATA_DIR') |
17 | package_data_file = os.path.join(pkgdata_dir, 'runtime', package_name) | 18 | package_data_file = os.path.join(pkgdata_dir, 'runtime', package_name) |
@@ -119,3 +120,13 @@ class BitbakePrTests(oeSelfTest): | |||
119 | @testcase(936) | 120 | @testcase(936) |
120 | def test_pr_service_ipk_arch_indep(self): | 121 | def test_pr_service_ipk_arch_indep(self): |
121 | self.run_test_pr_service('xcursor-transparent-theme', 'ipk', 'do_package') | 122 | self.run_test_pr_service('xcursor-transparent-theme', 'ipk', 'do_package') |
123 | |||
124 | @testcase(1419) | ||
125 | def test_stopping_prservice_message(self): | ||
126 | port = get_free_port() | ||
127 | |||
128 | runCmd('bitbake-prserv --host localhost --port %s --loglevel=DEBUG --start' % port) | ||
129 | ret = runCmd('bitbake-prserv --host localhost --port %s --loglevel=DEBUG --stop' % port) | ||
130 | |||
131 | self.assertEqual(ret.status, 0) | ||
132 | |||