mirror of
https://github.com/rancher/os.git
synced 2025-06-24 14:01:34 +00:00
21 lines
379 B
Go
21 lines
379 B
Go
|
package integration
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
. "gopkg.in/check.v1"
|
||
|
)
|
||
|
|
||
|
func (s *QemuSuite) TestSharedMount(c *C) {
|
||
|
err := s.RunQemu()
|
||
|
c.Assert(err, IsNil)
|
||
|
|
||
|
s.CheckCall(c, fmt.Sprintf(`
|
||
|
set -x -e
|
||
|
|
||
|
sudo mkdir /mnt/shared
|
||
|
sudo touch /test
|
||
|
sudo system-docker run --privileged -v /mnt:/mnt:shared -v /test:/test %s mount --bind / /mnt/shared
|
||
|
ls /mnt/shared | grep test`, BusyboxImage))
|
||
|
}
|