summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-25 11:40:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-26 16:35:00 +0100
commit2446bdf59aed8b1f600f8cbff239529c61fe12bb (patch)
tree11689f5ec7c6ddeb0df2706ae46dc752a8725efe /bitbake/lib/bb/command.py
parent72e03d8a91fab9d774abb577c6620d1bb59ae69f (diff)
downloadpoky-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/command.py')
-rw-r--r--bitbake/lib/bb/command.py10
1 files changed, 10 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