Test failures with file-5.45
With file-5.45, I get the following test failures:
$ file --version
file-5.45
magic file from /usr/share/misc/magic
seccomp support included
FAILED tests/comparators/test_cpio.py::test_symlink - AssertionError: assert 'filetype from file(1)' == 'dir/link'
FAILED tests/comparators/test_cpio.py::test_compressed_files - AssertionError: assert 'dir/link' == 'dir/text'
FAILED tests/comparators/test_uimage.py::test_nested_symlink - AssertionError: assert 'filetype from file(1)' == 'dir/link'
FAILED tests/comparators/test_uimage.py::test_nested_compressed_files - AssertionError: assert 'dir/link' == 'dir/text'
=================================================================================================== FAILURES ========================================================================================[3743/9487]
_________________________________________________________________________________________________ test_symlink _________________________________________________________________________________________________
differences = [<Difference file list -- file list []>, <Difference filetype from file(1) -- filetype from file(1) []>, <Difference dir/link -- dir/link []>, <Difference dir/text -- dir/text []>]
@skip_unless_tools_exist("cpio")
def test_symlink(differences):
> assert differences[1].source1 == "dir/link"
E AssertionError: assert 'filetype from file(1)' == 'dir/link'
E - dir/link
E + filetype from file(1)
differences = [<Difference file list -- file list []>,
<Difference filetype from file(1) -- filetype from file(1) []>,
<Difference dir/link -- dir/link []>,
<Difference dir/text -- dir/text []>]
tests/comparators/test_cpio.py:55: AssertionError
____________________________________________________________________________________________ test_compressed_files _____________________________________________________________________________________________
differences = [<Difference file list -- file list []>, <Difference filetype from file(1) -- filetype from file(1) []>, <Difference dir/link -- dir/link []>, <Difference dir/text -- dir/text []>]
@skip_unless_tools_exist("cpio")
def test_compressed_files(differences):
> assert differences[2].source1 == "dir/text"
E AssertionError: assert 'dir/link' == 'dir/text'
E - dir/text
E + dir/link
differences = [<Difference file list -- file list []>,
<Difference filetype from file(1) -- filetype from file(1) []>,
<Difference dir/link -- dir/link []>,
<Difference dir/text -- dir/text []>]
tests/comparators/test_cpio.py:63: AssertionError
_____________________________________________________________________________________________ test_nested_symlink ______________________________________________________________________________________________
nested_differences = [<Difference file list -- file list []>, <Difference filetype from file(1) -- filetype from file(1) []>, <Difference dir/link -- dir/link []>, <Difference dir/text -- dir/text []>]
@skip_unless_tools_exist("cpio")
def test_nested_symlink(nested_differences):
> assert nested_differences[1].source1 == "dir/link"
E AssertionError: assert 'filetype from file(1)' == 'dir/link'
E - dir/link
E + filetype from file(1)
nested_differences = [<Difference file list -- file list []>,
<Difference filetype from file(1) -- filetype from file(1) []>,
<Difference dir/link -- dir/link []>,
<Difference dir/text -- dir/text []>]
tests/comparators/test_uimage.py:117: AssertionError
_________________________________________________________________________________________ test_nested_compressed_files _________________________________________________________________________________________
nested_differences = [<Difference file list -- file list []>, <Difference filetype from file(1) -- filetype from file(1) []>, <Difference dir/link -- dir/link []>, <Difference dir/text -- dir/text []>]
@skip_unless_tools_exist("cpio")
def test_nested_compressed_files(nested_differences):
> assert nested_differences[2].source1 == "dir/text"
E AssertionError: assert 'dir/link' == 'dir/text'
E - dir/text
E + dir/link
nested_differences = [<Difference file list -- file list []>,
<Difference filetype from file(1) -- filetype from file(1) []>,
<Difference dir/link -- dir/link []>,
<Difference dir/text -- dir/text []>]
tests/comparators/test_uimage.py:125: AssertionError