diff options
| author | Armin Kuster <akuster808@gmail.com> | 2022-06-19 19:42:50 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2022-06-23 18:47:59 -0700 |
| commit | 14b2a6ac18c7317a22acd449cb961b626c9a5986 (patch) | |
| tree | 880580594861fd7741b12b3d88d9ead343f9cc7e | |
| parent | b5642c519b90f83ab6ec1507db9b3b36db43c548 (diff) | |
| download | meta-security-14b2a6ac18c7317a22acd449cb961b626c9a5986.tar.gz | |
oeqa: shut done swtpm before and after testing
fixes:
swtpm: Could not open TCP socket: Address already in use
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rw-r--r-- | meta-parsec/lib/oeqa/runtime/cases/parsec.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py b/meta-parsec/lib/oeqa/runtime/cases/parsec.py index d3d3f2e..11e5572 100644 --- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py +++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py | |||
| @@ -12,8 +12,13 @@ from oeqa.core.decorator.data import skipIfNotFeature | |||
| 12 | class ParsecTest(OERuntimeTestCase): | 12 | class ParsecTest(OERuntimeTestCase): |
| 13 | @classmethod | 13 | @classmethod |
| 14 | def setUpClass(cls): | 14 | def setUpClass(cls): |
| 15 | cls.tc.target.run('swtpm_ioctl -s --tcp :2322') | ||
| 15 | cls.toml_file = '/etc/parsec/config.toml' | 16 | cls.toml_file = '/etc/parsec/config.toml' |
| 16 | 17 | ||
| 18 | @classmethod | ||
| 19 | def tearDownClass(cls): | ||
| 20 | cls.tc.target.run('swtpm_ioctl -s --tcp :2322') | ||
| 21 | |||
| 17 | def setUp(self): | 22 | def setUp(self): |
| 18 | super(ParsecTest, self).setUp() | 23 | super(ParsecTest, self).setUp() |
| 19 | if 'systemd' in self.tc.td['DISTRO_FEATURES']: | 24 | if 'systemd' in self.tc.td['DISTRO_FEATURES']: |
