From 26f255da09e0f704af3d1535d3f8c5cd8b702a73 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 19 Dec 2022 16:08:42 +0000 Subject: [PATCH] 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 --- bitbake/lib/bb/command.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: These must not influence any running synchronous command. """ + def ping(self, command, params): + """ + Allow a UI to check the server is still alive + """ + return "Still alive!" + def stateShutdown(self, command, params): """ Trigger cooker 'shutdown' mode