1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 21:51:33 +00:00

/media and /mnt mounted as shared for console

This commit is contained in:
Darren Shepherd
2016-06-15 16:41:42 -07:00
parent c138ecb54d
commit 924e4b8aae
15 changed files with 68 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
import pytest
import rostest.util as u
from rostest.util import SSH
@pytest.fixture(scope="module")
def qemu(request):
q = u.run_qemu(request)
u.flush_out(q.stdout)
return q
def test_shared_mount(qemu):
SSH(qemu).check_call('''
set -x -e
sudo mkdir /mnt/shared
sudo touch /test
sudo system-docker run --privileged -v /mnt:/mnt:shared -v /test:/test {busybox_image} mount --bind / /mnt/shared
ls /mnt/shared | grep test
'''.format(busybox_image=u.busybox_image))