shared_mount_test.go 379 B

123456789101112131415161718192021
  1. package integration
  2. import (
  3. "fmt"
  4. . "gopkg.in/check.v1"
  5. )
  6. func (s *QemuSuite) TestSharedMount(c *C) {
  7. err := s.RunQemu()
  8. c.Assert(err, IsNil)
  9. s.CheckCall(c, fmt.Sprintf(`
  10. set -x -e
  11. sudo mkdir /mnt/shared
  12. sudo touch /test
  13. sudo system-docker run --privileged -v /mnt:/mnt:shared -v /test:/test %s mount --bind / /mnt/shared
  14. ls /mnt/shared | grep test`, BusyboxImage))
  15. }