subdir_test.go 276 B

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