From bdc294541edb5edafed1ff7f0b714eed29789411 Mon Sep 17 00:00:00 2001 From: Pawel Langowski Date: Thu, 31 Jul 2025 13:03:12 +0000 Subject: [PATCH] lib.sh: Add reboot wrapper function The `reboot_wrapper` function prints `Reboot command` to stdout and reboots the platform. Signed-off-by: Pawel Langowski --- case-lib/lib.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 5cb486bc..0d28a988 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -1272,3 +1272,10 @@ perf_analyze() fi } +# Use this function to reboot the DUT. Framework will read +# "Reboot command" and handle the reboot +reboot_wrapper() +{ + echo "Reboot command" && sleep 5 + sudo reboot now +}