Skip to content

Commit 765075e

Browse files
committed
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 765075e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

case-lib/lib.sh

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

1275+
# Use this function to reboot the DUT
1276+
reboot_wrapper()
1277+
{
1278+
echo "Reboot command"
1279+
sudo reboot
1280+
}

0 commit comments

Comments
 (0)