Skip to content
Snippets Groups Projects

community/py3-libarchive-c: fix test

Merged mio requested to merge mio/aports:py3-libarchive-c into master

Fix failed test with a newer version of libarchive. The error led to a rebuild failure on a 3.21 builder (error log).

    def test_check_archiveentry_using_python_testtar():
>       check_entries(join(data_dir, 'testtar.tar'))

tests/test_entry.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_entry.py:95: in check_entries
    actual = list(get_entries(test_file))
tests/__init__.py:47: in get_entries
    for entry in arch:
libarchive/read.py:27: in __iter__
    r = read_next_header2(archive_p, entry._entry_p)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

retcode = -10, func = <_FuncPtr object at 0x7fffeff64590>
args = (140737220359952, 140737219013264)

    def check_int(retcode, func, args):
        if retcode >= 0:
            return retcode
        elif retcode == ARCHIVE_WARN:
            logger.warning(_error_string(args[0]))
            return retcode
        else:
>           raise archive_error(args[0], retcode)
E           libarchive.exception.ArchiveError: Damaged tar archive (errno=22, retcode=-10, archive_p=140737220359952)

libarchive/ffi.py:98: ArchiveError

Merge request reports

Merge request pipeline #268136 skipped

Merge request pipeline skipped for 88492672

Merged by CelesteCeleste 1 month ago (Oct 25, 2024 3:31am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading