1
0
mirror of https://github.com/rancher/os.git synced 2025-06-29 00:06:49 +00:00
os/tests/integration/rostest/test_15_shared_mount.py
2016-06-07 12:09:10 -07:00

22 lines
487 B
Python

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))