diff options
Diffstat (limited to 'bitbake')
-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 a81dcb1366..ec86885220 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -667,6 +667,16 @@ class CommandsAsync: | |||
667 | command.finishAsyncCommand() | 667 | command.finishAsyncCommand() |
668 | findFilesMatchingInDir.needcache = False | 668 | findFilesMatchingInDir.needcache = False |
669 | 669 | ||
670 | def testCookerCommandEvent(self, command, params): | ||
671 | """ | ||
672 | Dummy command used by OEQA selftest to test tinfoil without IO | ||
673 | """ | ||
674 | pattern = params[0] | ||
675 | |||
676 | command.cooker.testCookerCommandEvent(pattern) | ||
677 | command.finishAsyncCommand() | ||
678 | testCookerCommandEvent.needcache = False | ||
679 | |||
670 | def findConfigFilePath(self, command, params): | 680 | def findConfigFilePath(self, command, params): |
671 | """ | 681 | """ |
672 | Find the path of the requested configuration file | 682 | Find the path of the requested configuration file |
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 | ||