test_06_subdir.py 458 B

1234567891011121314151617181920
  1. import pytest
  2. import rostest.util as u
  3. from rostest.util import SSH
  4. @pytest.fixture(scope="module")
  5. def qemu(request):
  6. q = u.run_qemu(request, run_args=['--append', 'rancher.state.directory=ros_subdir'])
  7. u.flush_out(q.stdout)
  8. return q
  9. def test_system_docker_survives_custom_docker_install(qemu):
  10. SSH(qemu).check_call('''
  11. set -x -e
  12. mkdir x
  13. sudo mount $(sudo ros dev LABEL=RANCHER_STATE) x
  14. [ -d x/ros_subdir/home/rancher ]
  15. '''.strip())