subdir_test.go 303 B

123456789101112131415
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestSubdir(c *C) {
  4. err := s.RunQemu("--append", "rancher.state.directory=ros_subdir")
  5. c.Assert(err, IsNil)
  6. s.CheckCall(c, `
  7. set -x -e
  8. mkdir x
  9. sudo mount $(sudo ros dev LABEL=RANCHER_STATE) x
  10. [ -d x/ros_subdir/home/rancher ]`)
  11. }