summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-02-02 12:07:19 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 16:06:24 +0000
commit37357ab9eec74d5ef9d7ef8a4c2f27763107ca47 (patch)
treef3d2abef9e5fad1204cab0a5eba0376921515c05 /meta
parentf895a61fc1e7c06ad168de181969feffe59c159d (diff)
downloadpoky-37357ab9eec74d5ef9d7ef8a4c2f27763107ca47.tar.gz
classes/testimage: Fix exportTests function.
With new structure of TestContext now holds suite and variable that contains unittest instances, it can't be exported using JSON causing and exception. Adds the suite variable for avoid export it. (From OE-Core rev: cecc7ec2bcb28d7d8a3277fb097efbbe13adff1c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/testimage.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 53c6174ac5..eed27be4ce 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -112,7 +112,7 @@ def exportTests(d,tc):
112 savedata["host_dumper"] = {} 112 savedata["host_dumper"] = {}
113 for key in tc.__dict__: 113 for key in tc.__dict__:
114 # special cases 114 # special cases
115 if key != "d" and key != "target" and key != "host_dumper": 115 if key not in ['d', 'target', 'host_dumper', 'suite']:
116 savedata[key] = getattr(tc, key) 116 savedata[key] = getattr(tc, key)
117 savedata["target"]["ip"] = tc.target.ip or d.getVar("TEST_TARGET_IP", True) 117 savedata["target"]["ip"] = tc.target.ip or d.getVar("TEST_TARGET_IP", True)
118 savedata["target"]["server_ip"] = tc.target.server_ip or d.getVar("TEST_SERVER_IP", True) 118 savedata["target"]["server_ip"] = tc.target.server_ip or d.getVar("TEST_SERVER_IP", True)