diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-02-02 12:07:19 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 15:51:04 +0000 |
commit | cecc7ec2bcb28d7d8a3277fb097efbbe13adff1c (patch) | |
tree | 8e841cf1686ee74d5d778cbff2ab55b171374fb1 /meta/classes/testimage.bbclass | |
parent | fcf0dc253f914418e15e2c6afc6f649b9270824a (diff) | |
download | openembedded-core-cecc7ec2bcb28d7d8a3277fb097efbbe13adff1c.tar.gz openembedded-core-cecc7ec2bcb28d7d8a3277fb097efbbe13adff1c.tar.bz2 openembedded-core-cecc7ec2bcb28d7d8a3277fb097efbbe13adff1c.zip |
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.
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 2 |
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): savedata["host_dumper"] = {} for key in tc.__dict__: # special cases - if key != "d" and key != "target" and key != "host_dumper": + if key not in ['d', 'target', 'host_dumper', 'suite']: savedata[key] = getattr(tc, key) savedata["target"]["ip"] = tc.target.ip or d.getVar("TEST_TARGET_IP", True) savedata["target"]["server_ip"] = tc.target.server_ip or d.getVar("TEST_SERVER_IP", True) |