Files
autotests/tests/9999-reboot.bash
Igor Pecovnik 3eb7284c0f RFC: Making tests modular
This makes now very easy to add new tests.

TODO:

- add option to display problems only
- set timeout and report error if host doesn't come up after reboot. Now it doesn't go out of the cycle
2020-03-06 00:17:42 +01:00

10 lines
239 B
Bash
Executable File

#!/bin/bash
source $SRC/lib/functions.sh
display_alert "$(basename $BASH_SOURCE)" "$(date +%R:%S)" "info"
display_alert "Rebooting in 5 seconds" "${HOST}" "wrn"
sleep 5
sshpass -p ${PASS_ROOT} ssh ${USER_ROOT}@${HOST} "reboot"
sleep 10