Skip to content

Commit ea49bbc

Browse files
authored
test(vm): reboot vms with force (#879)
Signed-off-by: Isteb4k <[email protected]>
1 parent 679c8de commit ea49bbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/e2e/util_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ func GenerateVMOPWithSuffix(vmName, suffix string, labels map[string]string, vmo
596596
func StopVirtualMachinesBySSH(virtualMachines ...string) {
597597
GinkgoHelper()
598598

599-
cmd := "sudo poweroff"
599+
cmd := "sudo poweroff -f"
600600

601601
for _, vm := range virtualMachines {
602602
ExecSshCommand(vm, cmd)
@@ -606,7 +606,7 @@ func StopVirtualMachinesBySSH(virtualMachines ...string) {
606606
func RebootVirtualMachinesBySSH(virtualMachines ...string) {
607607
GinkgoHelper()
608608

609-
cmd := "sudo reboot"
609+
cmd := "sudo reboot -f"
610610

611611
for _, vm := range virtualMachines {
612612
ExecSshCommand(vm, cmd)

tests/e2e/vm_configuration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ var _ = Describe("Virtual machine configuration", ginkgoutil.CommonE2ETestDecora
242242

243243
vms := strings.Split(res.StdOut(), " ")
244244
for _, vm := range vms {
245-
cmd := "sudo reboot"
245+
cmd := "sudo reboot -f"
246246
ExecSshCommand(vm, cmd)
247247
}
248248
WaitVmAgentReady(kc.WaitOptions{

0 commit comments

Comments
 (0)