From: Paul Eggleton Date: Mon, 27 Jul 2015 13:03:57 +0000 (+0100) Subject: oeqa/targetcontrol: create test directory before copying rootfs image X-Git-Tag: 2015-10~1088 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=7ef86ce62b52f0f3d0c51e3c20d7b4f37025bf41;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index 60b09b2cb2..beacdaf34a 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)