mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: cooker/command: Add a dummy event for tinfoil testing
We need a command genetating an event to test through the tinfoil API. The current test has IO load issues so add a dummy version which won't have the IO constraints. (Bitbake rev: a144178584394ea0700ffc2f2bfac94e8690effc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -667,6 +667,16 @@ class CommandsAsync:
|
|||||||
command.finishAsyncCommand()
|
command.finishAsyncCommand()
|
||||||
findFilesMatchingInDir.needcache = False
|
findFilesMatchingInDir.needcache = False
|
||||||
|
|
||||||
|
def testCookerCommandEvent(self, command, params):
|
||||||
|
"""
|
||||||
|
Dummy command used by OEQA selftest to test tinfoil without IO
|
||||||
|
"""
|
||||||
|
pattern = params[0]
|
||||||
|
|
||||||
|
command.cooker.testCookerCommandEvent(pattern)
|
||||||
|
command.finishAsyncCommand()
|
||||||
|
testCookerCommandEvent.needcache = False
|
||||||
|
|
||||||
def findConfigFilePath(self, command, params):
|
def findConfigFilePath(self, command, params):
|
||||||
"""
|
"""
|
||||||
Find the path of the requested configuration file
|
Find the path of the requested configuration file
|
||||||
|
|||||||
@@ -1068,6 +1068,11 @@ class BBCooker:
|
|||||||
if matches:
|
if matches:
|
||||||
bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data)
|
bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data)
|
||||||
|
|
||||||
|
def testCookerCommandEvent(self, filepattern):
|
||||||
|
# Dummy command used by OEQA selftest to test tinfoil without IO
|
||||||
|
matches = ["A", "B"]
|
||||||
|
bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data)
|
||||||
|
|
||||||
def findProviders(self, mc=''):
|
def findProviders(self, mc=''):
|
||||||
return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
|
return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user