]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/targetcontrol: create test directory before copying rootfs image
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 27 Jul 2015 13:03:57 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 22:28:20 +0000 (23:28 +0100)
The test directory might not exist at this point so just go ahead and
create it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/targetcontrol.py

index 60b09b2cb280cfc07e3dcd42b4aa38c7e054de30..beacdaf34a94a3a2373ae07702bf83912c85eee6 100644 (file)
@@ -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)