From: Mariano Lopez <[email protected]>

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 <[email protected]>
---
 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

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to