Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.opam.tests.test_lister::test_mock_init_repository_init
Failed

TEST RESULT

Run At
Sep 24 2021, 12:10 PM
Details
mock_opam = (<MagicMock name='call' id='139966956782424'>, <MagicMock name='Popen' id='139966956782648'>) tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_mock_init_repository_init0') datadir = '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/data' def test_mock_init_repository_init(mock_opam, tmp_path, datadir): """Initializing opam root directory with an instance should be ok """ mock_init, mock_popen = mock_opam instance = "fake" instance_url = f"file://{datadir}/{instance}" opam_root = str(tmp_path / "test-opam") assert not os.path.exists(opam_root) # This will initialize an opam directory with the instance > opam_init(opam_root, instance, instance_url, {}) .tox/py3/lib/python3.7/site-packages/swh/lister/opam/tests/test_lister.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/lister/opam/lister.py:145: in opam_init with FileLock(lock_path).acquire(timeout=10): .tox/py3/lib/python3.7/site-packages/filelock.py:271: in acquire self._acquire() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <filelock.UnixFileLock object at 0x7f4c99b25dd8> def _acquire(self): open_mode = os.O_RDWR | os.O_CREAT | os.O_TRUNC > fd = os.open(self._lock_file, open_mode) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-0/test_mock_init_repository_init0/test-opam/swh-lister-opam-maintenance.txt' .tox/py3/lib/python3.7/site-packages/filelock.py:384: FileNotFoundError