aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-07-27 14:03:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-27 23:28:20 +0100
commit7ef86ce62b52f0f3d0c51e3c20d7b4f37025bf41 (patch)
tree531c1597d7b69b081518a9b2701685384fb99cbe
parent5ca91cd0b56eb2da80c781fb46ae0b600c3f1eb9 (diff)
downloadopenembedded-core-contrib-7ef86ce62b52f0f3d0c51e3c20d7b4f37025bf41.tar.gz
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/targetcontrol.py1
1 files changed, 1 insertions, 0 deletions
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)