summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/core
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-01-25 12:20:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 14:40:18 +0000
commit26ad5105fc2ce03b7ee8ecc6911fd40a52bd573a (patch)
tree480310809d855826ec97b4df8197440e6199780c /meta/lib/oeqa/core
parent570f50b30072a10c5eadfbbfea2647339ee85176 (diff)
downloadopenembedded-core-26ad5105fc2ce03b7ee8ecc6911fd40a52bd573a.tar.gz
openembedded-core-26ad5105fc2ce03b7ee8ecc6911fd40a52bd573a.tar.bz2
openembedded-core-26ad5105fc2ce03b7ee8ecc6911fd40a52bd573a.zip
testimage.bbclass: Allow to run tests on autobuilder's images
With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current environment in order to run, this commit will update such paths and fix the error of running images donwloaded from autobuilders. [YOCTO #10964] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/core')
-rw-r--r--meta/lib/oeqa/core/utils/misc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/utils/misc.py b/meta/lib/oeqa/core/utils/misc.py
index 6ae58ad6c4..d1eec13aa6 100644
--- a/meta/lib/oeqa/core/utils/misc.py
+++ b/meta/lib/oeqa/core/utils/misc.py
@@ -35,3 +35,10 @@ def dataStoteToDict(d, variables):
data[v] = d.getVar(v, True)
return data
+
+def updateTestData(d, td, variables):
+ """
+ Updates variables with values of data store to test data.
+ """
+ for var in variables:
+ td[var] = d.getVar(var)