Skip to content

Commit 2ccef4e

Browse files
PLangowskiredzynix
authored andcommitted
lib.sh: Add reboot wrapper function
The `reboot_wrapper` function prints `Reboot command` to stdout and reboots the platform. Signed-off-by: Pawel Langowski <pawelx.langowski@intel.com>
1 parent 5124961 commit 2ccef4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

case-lib/lib.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,3 +1272,10 @@ perf_analyze()
12721272
fi
12731273
}
12741274

1275+
# Use this function to reboot the DUT. Framework will read
1276+
# "Reboot command" and handle the reboot
1277+
reboot_wrapper()
1278+
{
1279+
echo "Reboot command" && sleep 5
1280+
sudo reboot now
1281+
}

0 commit comments

Comments
 (0)