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.

(From OE-Core rev: 7ef86ce62b52f0f3d0c51e3c20d7b4f37025bf41)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2015-07-27 14:03:57 +01:00 committed by Richard Purdie
parent 67a3807c4c
commit 69bae0651e
1 changed files with 1 additions and 0 deletions

View 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)