1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 05:57:03 +00:00
os/tests/bad_state_test.go

14 lines
460 B
Go
Raw Normal View History

package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestBadState(c *C) {
2016-10-22 03:34:30 +00:00
s.RunQemu(c, "--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE")
s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
}
func (s *QemuSuite) TestBadStateWithWait(c *C) {
2016-10-22 03:34:30 +00:00
s.RunQemu(c, "--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE", "--append", "rancher.state.wait")
s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
}