diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-25 11:40:58 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-26 16:35:00 +0100 |
| commit | 2446bdf59aed8b1f600f8cbff239529c61fe12bb (patch) | |
| tree | 11689f5ec7c6ddeb0df2706ae46dc752a8725efe /bitbake/lib/bb/cooker.py | |
| parent | 72e03d8a91fab9d774abb577c6620d1bb59ae69f (diff) | |
| download | poky-2446bdf59aed8b1f600f8cbff239529c61fe12bb.tar.gz | |
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>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 1f55d9ad73..af794b4c42 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1068,6 +1068,11 @@ class BBCooker: | |||
| 1068 | if matches: | 1068 | if matches: |
| 1069 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) | 1069 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) |
| 1070 | 1070 | ||
| 1071 | def testCookerCommandEvent(self, filepattern): | ||
| 1072 | # Dummy command used by OEQA selftest to test tinfoil without IO | ||
| 1073 | matches = ["A", "B"] | ||
| 1074 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) | ||
| 1075 | |||
| 1071 | def findProviders(self, mc=''): | 1076 | def findProviders(self, mc=''): |
| 1072 | return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn) | 1077 | return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn) |
| 1073 | 1078 | ||
