tests, ping: Specify destination at the end
Moving the destination at the end of the ping command allow to use the
same command at fedora and at alpine with non busybox ping.
@@ -45,7 +45,8 @@ func PingFromVMConsole(vmi *v1.VirtualMachineInstance, ipAddr string, args ...st
if len(args) == 0 {
args = []string{"-c 5", "-w 10"}
}
- args = append([]string{pingString, ipAddr}, args...)
+ args = append([]string{pingString}, args...)
+ args = append(args, ipAddr)
cmdCheck := strings.Join(args, " ")
err := console.RunCommand(vmi, cmdCheck, maxCommandTimeout)
