diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 19:11:04 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 20:31:08 +0900 |
commit | 79f9f065d7f22039ec189d59f557bbe00123eacd (patch) | |
tree | 2421d68323b513ea1241bbf59d4ea6ba53208098 /tests/sandboxes | |
parent | 69cc9ef00b957a202a80c7690f7ee3e5ad8b8eda (diff) | |
download | buildstream-79f9f065d7f22039ec189d59f557bbe00123eacd.tar.gz |
tests/sandboxes/mounting/mount_simple.py: Changed to test new Mounter objectsandbox-mounts-refactor
Diffstat (limited to 'tests/sandboxes')
-rw-r--r-- | tests/sandboxes/mounting/mount_simple.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sandboxes/mounting/mount_simple.py b/tests/sandboxes/mounting/mount_simple.py index 6ac4f3a2d..449de43e5 100644 --- a/tests/sandboxes/mounting/mount_simple.py +++ b/tests/sandboxes/mounting/mount_simple.py @@ -4,7 +4,7 @@ from contextlib import ExitStack import pytest -from buildstream.sandbox._mount import Mount +from buildstream.sandbox._mounter import Mounter @pytest.mark.skipif(not os.geteuid() == 0, reason="requires root permissions") @@ -16,7 +16,7 @@ def test_bind_mount(): with open(os.path.join(src, 'test'), 'a') as test: test.write('Test') - with Mount.bind_mount(target, src) as dest: + with Mounter.bind_mount(target, src) as dest: # Ensure we get the correct path back assert dest == target @@ -41,7 +41,7 @@ def test_mount_proc(): src = '/proc' target = stack.enter_context(tempfile.TemporaryDirectory()) - with Mount.mount(target, src, mount_type='proc', ro=True) as dest: + with Mounter.mount(target, src, mount_type='proc', ro=True) as dest: # Ensure we get the correct path back assert dest == target |