-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Labels
command | rebootSupport for rebooting guests during `tmt run` and the `tmt-reboot` commandSupport for rebooting guests during `tmt run` and the `tmt-reboot` commandstep | prepareStuff related to the prepare stepStuff related to the prepare step
Milestone
Description
In one of the discussions around reboot, it was mentioned that it may be nice to also support it not only in execute -h internal but also in prepare -h shell. @psss mentioned that the same effect should be achieved using ansible and its reboot feature but it could be useful to provide the same thing for shell preparation (more options are nice, aren't they?). I see it as a nice-to-have, should not be hard to implement (logic can be reused) but not a priority.
prepare:
- name: Prepare the system and reboot
how: shell
script: |
if [ -z "$REBOOT_COUNT" ] || [ "$REBOOT_COUNT" -eq 0 ]; then
dnf install -y something
touch /etc/some-file
tmt-reboot
fi
pkis
Metadata
Metadata
Labels
command | rebootSupport for rebooting guests during `tmt run` and the `tmt-reboot` commandSupport for rebooting guests during `tmt run` and the `tmt-reboot` commandstep | prepareStuff related to the prepare stepStuff related to the prepare step