X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/07a2b2c0e743f36be03e746a7e265986db555d3e..4d9a9766999dda4657bce039a1d56a5591201e95:/services/fuse/tests/test_unmount.py diff --git a/services/fuse/tests/test_unmount.py b/services/fuse/tests/test_unmount.py index bf180beb7a..3949fd5de4 100644 --- a/services/fuse/tests/test_unmount.py +++ b/services/fuse/tests/test_unmount.py @@ -10,7 +10,7 @@ import tempfile import time import unittest -from integration_test import IntegrationTest +from .integration_test import IntegrationTest class UnmountTest(IntegrationTest): def setUp(self): @@ -29,20 +29,21 @@ class UnmountTest(IntegrationTest): self.mnt]) subprocess.check_call( ['./bin/arv-mount', '--subtype', 'test', '--replace', - '--unmount-timeout', '10', + '--unmount-timeout', '60', self.mnt]) subprocess.check_call( ['./bin/arv-mount', '--subtype', 'test', '--replace', - '--unmount-timeout', '10', + '--unmount-timeout', '60', self.mnt, '--exec', 'true']) for m in subprocess.check_output(['mount']).splitlines(): - self.assertNotIn(' '+self.mnt+' ', m) + expected = bytes(' ' + self.mnt + ' ', encoding='utf-8') + self.assertNotIn(expected, m) def _mounted(self, mounts): all_mounts = subprocess.check_output(['mount']) return [m for m in mounts - if ' '+m+' ' in all_mounts] + if bytes(' ' + m + ' ', encoding='utf-8') in all_mounts] def _wait_for_mounts(self, mounts): deadline = time.time() + 10