mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e8935e20d6
commit
1e88c8fce4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user