All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Two fixes about cleaning up temp dir
@ 2019-07-19 10:00 Chen Qi
  2019-07-19 10:00 ` [PATCH 1/2] runtime_test.py: use track_for_cleanup for " Chen Qi
  2019-07-19 10:00 ` [PATCH 2/2] devtool: remove temp dir in upgrade Chen Qi
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Qi @ 2019-07-19 10:00 UTC (permalink / raw)
  To: openembedded-core

*** BLURB HERE ***
The following changes since commit ecf098877522508875ccff8c56cd7fee0fa3762a:

  distro/include: Add poky-distro-alt-test-config.inc (2019-07-19 08:46:04 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/temp-clean
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/temp-clean

Chen Qi (2):
  runtime_test.py: use track_for_cleanup for temp dir
  devtool: remove temp dir in upgrade

 meta/lib/oeqa/selftest/cases/runtime_test.py | 4 +---
 scripts/lib/devtool/upgrade.py               | 1 +
 2 files changed, 2 insertions(+), 3 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] runtime_test.py: use track_for_cleanup for temp dir
  2019-07-19 10:00 [PATCH 0/2] Two fixes about cleaning up temp dir Chen Qi
@ 2019-07-19 10:00 ` Chen Qi
  2019-07-19 10:00 ` [PATCH 2/2] devtool: remove temp dir in upgrade Chen Qi
  1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2019-07-19 10:00 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index d817b75..20969d2 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):
 
         # Enable package feed signing
         self.gpg_home = tempfile.mkdtemp(prefix="oeqa-feed-sign-")
+        self.track_for_cleanup(self.gpg_home)
         signing_key_dir = os.path.join(self.testlayer_path, 'files', 'signing')
         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"))
         features += 'INHERIT += "sign_package_feed"\n'
@@ -165,9 +166,6 @@ class TestImage(OESelftestTestCase):
         bitbake('core-image-full-cmdline socat')
         bitbake('-c testimage core-image-full-cmdline')
 
-        # remove the oeqa-feed-sign temporal directory
-        shutil.rmtree(self.gpg_home, ignore_errors=True)
-
     def test_testimage_virgl_gtk(self):
         """
         Summary: Check host-assisted accelerate OpenGL functionality in qemu with gtk frontend
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] devtool: remove temp dir in upgrade
  2019-07-19 10:00 [PATCH 0/2] Two fixes about cleaning up temp dir Chen Qi
  2019-07-19 10:00 ` [PATCH 1/2] runtime_test.py: use track_for_cleanup for " Chen Qi
@ 2019-07-19 10:00 ` Chen Qi
  1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2019-07-19 10:00 UTC (permalink / raw)
  To: openembedded-core

For now, the temp dir is left in system, although the temporary
source directory has been cleaned up. So we clean it up too.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 scripts/lib/devtool/upgrade.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 706f91c..18c5b66 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -281,6 +281,7 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, srcbranch, branch, kee
             logger.info('Preserving temporary directory %s' % tmpsrctree)
         else:
             shutil.rmtree(tmpsrctree)
+            shutil.rmtree(tmpdir)
 
     return (rev, md5, sha256, srcbranch, srcsubdir_rel)
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-19  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-19 10:00 [PATCH 0/2] Two fixes about cleaning up temp dir Chen Qi
2019-07-19 10:00 ` [PATCH 1/2] runtime_test.py: use track_for_cleanup for " Chen Qi
2019-07-19 10:00 ` [PATCH 2/2] devtool: remove temp dir in upgrade Chen Qi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.