Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.search.tests.test_translator::test_language_filter
Failed

TEST RESULT

Run At
Jul 27 2021, 2:30 PM
Details
def test_language_filter(): query = 'language in [python, "go lang", cpp]' expected = { "filters": { "nested": { "path": "intrinsic_metadata", "query": { "bool": { "should": [ { "match": { get_expansion( "programming_languages", "." ): "python" } }, { "match": { get_expansion( "programming_languages", "." ): "go lang" } }, { "match": { get_expansion("programming_languages", "."): "cpp" } }, ] } }, } } } > _test_results(query, expected) .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_translator.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_translator.py:8: in _test_results output = Translator().parse_query(query) .tox/py3/lib/python3.7/site-packages/swh/search/translator.py:18: in __init__ swh_ql = Language(ql_path, "swh_search_ql") .tox/py3/lib/python3.7/site-packages/tree_sitter/__init__.py:81: in __init__ self.lib = cdll.LoadLibrary(library_path) /usr/lib/python3.7/ctypes/__init__.py:434: in LoadLibrary return self._dlltype(name) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <CDLL '/var/lib/jenkins/workspace/DSEA/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/search/../../static/swh_ql.so', handle 0 at 0x7f09583d62e8> name = '/var/lib/jenkins/workspace/DSEA/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/search/../../static/swh_ql.so' mode = 0, handle = None, use_errno = False, use_last_error = False def __init__(self, name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False): self._name = name flags = self._func_flags_ if use_errno: flags |= _FUNCFLAG_USE_ERRNO if use_last_error: flags |= _FUNCFLAG_USE_LASTERROR if _sys.platform.startswith("aix"): """When the name contains ".a(" and ends with ")", e.g., "libFOO.a(libFOO.so)" - this is taken to be an archive(member) syntax for dlopen(), and the mode is adjusted. Otherwise, name is presented to dlopen() as a file argument. """ if name and name.endswith(")") and ".a(" in name: mode |= ( _os.RTLD_MEMBER | _os.RTLD_NOW ) class _FuncPtr(_CFuncPtr): _flags_ = flags _restype_ = self._func_restype_ self._FuncPtr = _FuncPtr if handle is None: > self._handle = _dlopen(self._name, mode) E OSError: /var/lib/jenkins/workspace/DSEA/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/search/../../static/swh_ql.so: cannot open shared object file: No such file or directory /usr/lib/python3.7/ctypes/__init__.py:356: OSError