[OE-core] [PATCH 1/3] runtime/_ptest.py: Delete WORKDIR/installed_pkgs.txt
mariano.lopez at linux.intel.com
mariano.lopez at linux.intel.com
Wed Nov 4 07:50:46 UTC 2015
From: Mariano Lopez <mariano.lopez at linux.intel.com>
The file WORKDIR/installed_pkgs.txt is an internal file
used for package installation, neverteless it is left in
the WORKDIR and this can cause confusion.
ptest use this file internally also (it overwrites the file
left when creating the rootfs) and don't remove the file in
WORKDIR, this changes deletes the file once is used.
[YOCTO #8444]
Signed-off-by: Mariano Lopez <mariano.lopez at linux.intel.com>
---
meta/lib/oeqa/runtime/_ptest.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oeqa/runtime/_ptest.py b/meta/lib/oeqa/runtime/_ptest.py
index 0621028..fefc576 100644
--- a/meta/lib/oeqa/runtime/_ptest.py
+++ b/meta/lib/oeqa/runtime/_ptest.py
@@ -91,7 +91,9 @@ class PtestRunnerTest(oeRuntimeTest):
try:
bb.note("Installing complementary packages ...")
complementary_pkgs = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
+ os.remove(installed_pkgs_file)
except subprocess.CalledProcessError as e:
+ os.remove(installed_pkgs_file)
bb.fatal("Could not compute complementary packages list. Command "
"'%s' returned %d:\n%s" %
(' '.join(cmd), e.returncode, e.output))
--
1.8.4.5
More information about the Openembedded-core
mailing list