diff options
| -rw-r--r-- | bitbake/lib/bb/command.py | 10 | ||||
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 07128027fd..98c945edb5 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -624,6 +624,16 @@ class CommandsAsync: | |||
| 624 | command.finishAsyncCommand() | 624 | command.finishAsyncCommand() |
| 625 | findFilesMatchingInDir.needcache = False | 625 | findFilesMatchingInDir.needcache = False |
| 626 | 626 | ||
| 627 | def testCookerCommandEvent(self, command, params): | ||
| 628 | """ | ||
| 629 | Dummy command used by OEQA selftest to test tinfoil without IO | ||
| 630 | """ | ||
| 631 | pattern = params[0] | ||
| 632 | |||
| 633 | command.cooker.testCookerCommandEvent(pattern) | ||
| 634 | command.finishAsyncCommand() | ||
| 635 | testCookerCommandEvent.needcache = False | ||
| 636 | |||
| 627 | def findConfigFilePath(self, command, params): | 637 | def findConfigFilePath(self, command, params): |
| 628 | """ | 638 | """ |
| 629 | Find the path of the requested configuration file | 639 | Find the path of the requested configuration file |
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 8d9ca68062..ac54d4378d 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1019,6 +1019,11 @@ class BBCooker: | |||
| 1019 | if matches: | 1019 | if matches: |
| 1020 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) | 1020 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) |
| 1021 | 1021 | ||
| 1022 | def testCookerCommandEvent(self, filepattern): | ||
| 1023 | # Dummy command used by OEQA selftest to test tinfoil without IO | ||
| 1024 | matches = ["A", "B"] | ||
| 1025 | bb.event.fire(bb.event.FilesMatchingFound(filepattern, matches), self.data) | ||
| 1026 | |||
| 1022 | def findProviders(self, mc=''): | 1027 | def findProviders(self, mc=''): |
| 1023 | return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn) | 1028 | return bb.providers.findProviders(self.databuilder.mcdata[mc], self.recipecaches[mc], self.recipecaches[mc].pkg_pn) |
| 1024 | 1029 | ||
