summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-19 16:08:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-21 14:15:26 +0000
commit26f255da09e0f704af3d1535d3f8c5cd8b702a73 (patch)
tree92c7ac786b3d34ca57b8555e6773cfa92d892105 /bitbake/lib/bb/command.py
parent35c7fbab7f6544afb46c962a81ad987445c96e78 (diff)
downloadpoky-26f255da09e0f704af3d1535d3f8c5cd8b702a73.tar.gz
bitbake: command: Add ping command
Add a simple ping command so the UI can check the server is still there. (Bitbake rev: fd3359de0b9f18fac187a629df203be0b2c87545) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index c9571f63d8..0208e30ec4 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -166,6 +166,12 @@ class CommandsSync:
166 These must not influence any running synchronous command. 166 These must not influence any running synchronous command.
167 """ 167 """
168 168
169 def ping(self, command, params):
170 """
171 Allow a UI to check the server is still alive
172 """
173 return "Still alive!"
174
169 def stateShutdown(self, command, params): 175 def stateShutdown(self, command, params):
170 """ 176 """
171 Trigger cooker 'shutdown' mode 177 Trigger cooker 'shutdown' mode