summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2023-02-01 08:26:14 -0500
committerArmin Kuster <akuster808@gmail.com>2023-02-22 15:31:09 -0500
commitcc20e2af2ae1c74e306f6c039c4963457c4cbd0f (patch)
tree32cb95925d5e419afa218f817386ffe2c4682eaa
parenta30a85dba10b744b5365b6b24dcea1de74608c34 (diff)
downloadmeta-security-cc20e2af2ae1c74e306f6c039c4963457c4cbd0f.tar.gz
oeqa: meta-tpm shut swtpm down before and after testing
fixes: swtpm: Could not open TCP socket: Address already in use Signed-off-by: Armin Kuster <akuster808@gmail.com> (cherry picked from commit b5642c519b90f83ab6ec1507db9b3b36db43c548) [Fixup for kirkstone context] Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/lib/oeqa/runtime/cases/tpm2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-tpm/lib/oeqa/runtime/cases/tpm2.py b/meta-tpm/lib/oeqa/runtime/cases/tpm2.py
index e64d19d..8e90dc9 100644
--- a/meta-tpm/lib/oeqa/runtime/cases/tpm2.py
+++ b/meta-tpm/lib/oeqa/runtime/cases/tpm2.py
@@ -8,10 +8,12 @@ from oeqa.core.decorator.data import skipIfNotFeature
8class Tpm2Test(OERuntimeTestCase): 8class Tpm2Test(OERuntimeTestCase):
9 @classmethod 9 @classmethod
10 def setUpClass(cls): 10 def setUpClass(cls):
11 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
11 cls.tc.target.run('mkdir /tmp/myvtpm2') 12 cls.tc.target.run('mkdir /tmp/myvtpm2')
12 13
13 @classmethod 14 @classmethod
14 def tearDownClass(cls): 15 def tearDownClass(cls):
16 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
15 cls.tc.target.run('rm -fr /tmp/myvtpm2') 17 cls.tc.target.run('rm -fr /tmp/myvtpm2')
16 18
17 def check_endlines(self, results, expected_endlines): 19 def check_endlines(self, results, expected_endlines):