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-03 12:43:17 +0100
commita2b0d0423555e9b386f1a7bb620837c23be3854e (patch)
tree813298c5de3b509b12ac03e3222744305da458ca /meta/lib/oeqa/runexported.py
parent53ab41a5f6d20e911362a9261ae528452bb71bbd (diff)
downloadpoky-a2b0d0423555e9b386f1a7bb620837c23be3854e.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] (From OE-Core rev: 25814dbdd12db0499e4d81876873158e1b8a4fcc) 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"))
32 32
33from oeqa.oetest import runTests 33from oeqa.oetest import runTests
34from oeqa.utils.sshcontrol import SSHControl 34from oeqa.utils.sshcontrol import SSHControl
35from oeqa.utils.dump import get_host_dumper
35 36
36# this isn't pretty but we need a fake target object 37# this isn't pretty but we need a fake target object
37# for running the tests externally as we don't care 38# for running the tests externally as we don't care
@@ -118,11 +119,16 @@ def main():
118 for key in loaded["target"].keys(): 119 for key in loaded["target"].keys():
119 setattr(target, key, loaded["target"][key]) 120 setattr(target, key, loaded["target"][key])
120 121
122 host_dumper = get_host_dumper(d)
123 host_dumper.parent_dir = loaded["host_dumper"]["parent_dir"]
124 host_dumper.cmds = loaded["host_dumper"]["cmds"]
125
121 tc = TestContext() 126 tc = TestContext()
122 setattr(tc, "d", d) 127 setattr(tc, "d", d)
123 setattr(tc, "target", target) 128 setattr(tc, "target", target)
129 setattr(tc, "host_dumper", host_dumper)
124 for key in loaded.keys(): 130 for key in loaded.keys():
125 if key != "d" and key != "target": 131 if key != "d" and key != "target" and key != "host_dumper":
126 setattr(tc, key, loaded[key]) 132 setattr(tc, key, loaded[key])
127 133
128 target.exportStart() 134 target.exportStart()