[oe-commits] Paul Eggleton : oeqa/targetcontrol: create test directory before copying rootfs image

git at git.openembedded.org git at git.openembedded.org
Mon Jul 27 13:07:39 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: aa5d39df20db57972e75b5e31614ab170be100d1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=aa5d39df20db57972e75b5e31614ab170be100d1

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Mon Jul 27 14:03:57 2015 +0100

oeqa/targetcontrol: create test directory before copying rootfs image

The test directory might not exist at this point so just go ahead and
create it.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/targetcontrol.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 60b09b2..beacdaf 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -143,6 +143,7 @@ class QemuTarget(BaseTarget):
 
     def deploy(self):
         try:
+            bb.utils.mkdirhier(self.testdir)
             shutil.copyfile(self.origrootfs, self.rootfs)
         except Exception as e:
             bb.fatal("Error copying rootfs: %s" % e)



More information about the Openembedded-commits mailing list