summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runexported.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-09-01 07:36:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-01 21:47:12 +0100
commit25814dbdd12db0499e4d81876873158e1b8a4fcc (patch)
tree37fad2b8360a5c85941ddc6aac83e765f49abc52 /meta/lib/oeqa/runexported.py
parentb0af40fb76cd5035696e9d8a44f815f64214d23a (diff)
downloadopenembedded-core-contrib-25814dbdd12db0499e4d81876873158e1b8a4fcc.tar.gz
runexported: Make it compatible with host dump
Currently it is not possible to run a exported test, but this patch will allow to use the HosDumper class when running a exported test, otherwise the HostDumper class will break runexpored test. [YOCTO #8118] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runexported.py')
-rwxr-xr-xmeta/lib/oeqa/runexported.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py
index e1b6642ec2..96442b1b27 100755
--- a/meta/lib/oeqa/runexported.py
+++ b/meta/lib/oeqa/runexported.py
@@ -32,6 +32,7 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "oeqa"))
from oeqa.oetest import runTests
from oeqa.utils.sshcontrol import SSHControl
+from oeqa.utils.dump import get_host_dumper
# this isn't pretty but we need a fake target object
# for running the tests externally as we don't care
@@ -118,11 +119,16 @@ def main():
for key in loaded["target"].keys():
setattr(target, key, loaded["target"][key])
+ host_dumper = get_host_dumper(d)
+ host_dumper.parent_dir = loaded["host_dumper"]["parent_dir"]
+ host_dumper.cmds = loaded["host_dumper"]["cmds"]
+
tc = TestContext()
setattr(tc, "d", d)
setattr(tc, "target", target)
+ setattr(tc, "host_dumper", host_dumper)
for key in loaded.keys():
- if key != "d" and key != "target":
+ if key != "d" and key != "target" and key != "host_dumper":
setattr(tc, key, loaded[key])
target.exportStart()