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:
21
tests/integration/rostest/test_15_shared_mount.py
Normal file
21
tests/integration/rostest/test_15_shared_mount.py
Normal 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))
|
Reference in New Issue
Block a user