summaryrefslogtreecommitdiffstats
path: root/meta/lib
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:43:01 +0000
commit1e88c8fce4e60530a53388e0eac54e4a68a6f924 (patch)
treeb0a8487ab8fc313c27d3a8a428f199c00d2f7706 /meta/lib
parente8935e20d6e80435d23fe0aa0b969087461e1a74 (diff)
downloadpoky-1e88c8fce4e60530a53388e0eac54e4a68a6f924.tar.gz
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] (From OE-Core rev: 26ad5105fc2ce03b7ee8ecc6911fd40a52bd573a) Signed-off-by: Mariano Lopez <mariano.lopez@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/lib')
-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):
35 data[v] = d.getVar(v, True) 35 data[v] = d.getVar(v, True)
36 36
37 return data 37 return data
38
39def updateTestData(d, td, variables):
40 """
41 Updates variables with values of data store to test data.
42 """
43 for var in variables:
44 td[var] = d.getVar(var)