summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2019-07-19 18:00:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-22 17:31:03 +0100
commit1c7a734922041d5fa8936dbb7652e46eb22a8aab (patch)
treec0cd7b0e2361540445b4a35c06c02a15615dfb14 /meta/lib
parent2d8e21eaac3e9d8a1f71fc45877e553c8546aea0 (diff)
downloadpoky-1c7a734922041d5fa8936dbb7652e46eb22a8aab.tar.gz
runtime_test.py: use track_for_cleanup for temp dir
Use track_for_cleanup for temp dir to avoid such temp dir being not cleaned up when something goes wrong, e.g., building image failure. (From OE-Core rev: 7105c9bcceda3e4defbb6aa9fb3e8fd38c1e00a2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index d817b755fe..20969d2c48 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -153,6 +153,7 @@ class TestImage(OESelftestTestCase):
153 153
154 # Enable package feed signing 154 # Enable package feed signing
155 self.gpg_home = tempfile.mkdtemp(prefix="oeqa-feed-sign-") 155 self.gpg_home = tempfile.mkdtemp(prefix="oeqa-feed-sign-")
156 self.track_for_cleanup(self.gpg_home)
156 signing_key_dir = os.path.join(self.testlayer_path, 'files', 'signing') 157 signing_key_dir = os.path.join(self.testlayer_path, 'files', 'signing')
157 runCmd('gpg --batch --homedir %s --import %s' % (self.gpg_home, os.path.join(signing_key_dir, 'key.secret')), native_sysroot=get_bb_var("RECIPE_SYSROOT_NATIVE", "gnupg-native")) 158 runCmd('gpg --batch --homedir %s --import %s' % (self.gpg_home, os.path.join(signing_key_dir, 'key.secret')), native_sysroot=get_bb_var("RECIPE_SYSROOT_NATIVE", "gnupg-native"))
158 features += 'INHERIT += "sign_package_feed"\n' 159 features += 'INHERIT += "sign_package_feed"\n'
@@ -165,9 +166,6 @@ class TestImage(OESelftestTestCase):
165 bitbake('core-image-full-cmdline socat') 166 bitbake('core-image-full-cmdline socat')
166 bitbake('-c testimage core-image-full-cmdline') 167 bitbake('-c testimage core-image-full-cmdline')
167 168
168 # remove the oeqa-feed-sign temporal directory
169 shutil.rmtree(self.gpg_home, ignore_errors=True)
170
171 def test_testimage_virgl_gtk(self): 169 def test_testimage_virgl_gtk(self):
172 """ 170 """
173 Summary: Check host-assisted accelerate OpenGL functionality in qemu with gtk frontend 171 Summary: Check host-assisted accelerate OpenGL functionality in qemu with gtk frontend