1
0
mirror of https://github.com/rancher/os.git synced 2025-07-12 14:18:01 +00:00
os/tests/installer_test.go

30 lines
625 B
Go
Raw Normal View History

package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestInstall(c *C) {
// ./scripts/run --no-format --append "rancher.debug=true" --iso --fresh
runArgs := []string{
"--iso",
"--fresh",
"--no-format",
"--append", "rancher.debug=true",
}
s.RunQemuWith(c, runArgs...)
s.CheckCall(c, `
set -ex
sudo ros install --force --no-reboot --device /dev/vda`)
s.Stop(c)
// ./scripts/run --no-format --append "rancher.debug=true"
runArgs = []string{
"--no-format",
"--append", "rancher.debug=true",
}
s.RunQemuWith(c, runArgs...)
s.CheckCall(c, "sudo ros -v")
}