libimage-exiftool-perl >= 12.45+dfsg-1: makes test fail
autopkgtest [13:17:08]: test command1: MAT2_GLOBAL_PATH_TESTSUITE= pytest-3
autopkgtest [13:17:08]: test command1: [-----------------------
============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
rootdir: /tmp/autopkgtest-lxc.bay8oxam/downtmp/build.7US/src
collected 121 items
tests/test_climat2.py ......................... [ 20%]
tests/test_corrupted_files.py .......................................... [ 55%]
[ 55%]
tests/test_deep_cleaning.py ..... [ 59%]
tests/test_libmat2.py .................................F.......... [ 95%]
tests/test_lightweight_cleaning.py .. [ 97%]
tests/test_policy.py ... [100%]
=================================== FAILURES ===================================
_______________________ TestCleaning.test_all_parametred _______________________
self = <tests.test_libmat2.TestCleaning testMethod=test_all_parametred>
def test_all_parametred(self):
for case in self.data:
with self.subTest(case=case):
if 'ffmpeg' in case:
try:
video._get_ffmpeg_path()
except RuntimeError:
raise unittest.SkipTest
print('[+] Testing %s' % case['name'])
target = './tests/data/clean.' + case['name']
shutil.copy('./tests/data/dirty.' + case['name'], target)
p1 = case['parser'](target)
for k, v in p1.get_meta().items():
if k not in case['meta']:
continue
if isinstance(v, dict):
for _k, _v in v.items():
if _k in case['meta'][k]:
self.assertEqual(_v, case['meta'][k][_k])
else:
self.assertEqual(v, case['meta'][k])
p1.lightweight_cleaning = True
self.assertTrue(p1.remove_all())
p2 = case['parser'](p1.output_filename)
meta = p2.get_meta()
if meta:
for k, v in p2.get_meta().items():
> self.assertIn(k, case['expected_meta'], '"%s" is not in "%s" (%s)' % (k, case['expected_meta'], case['name']))
E AssertionError: 'ColorProfiles' not found in {'AverageBitrate': 465641, 'BufferSize': 0, 'CompatibleBrands': ['isom', 'iso2', 'avc1', 'mp41'], 'ColorRepresentation': 'nclx 1 1 1', 'CompressorID': 'avc1', 'GraphicsMode': 'srcCopy', 'HandlerDescription': 'SoundHandler', 'HandlerType': 'Metadata', 'HandlerVendorID': 'Apple', 'MajorBrand': 'Base Media v1 [IS0 14496-12:2003]', 'MaxBitrate': 465641, 'MediaDataOffset': 48, 'MediaDataSize': 379872, 'MediaHeaderVersion': 0, 'MinorVersion': '0.2.0', 'MovieDataOffset': 48, 'MovieHeaderVersion': 0, 'NextTrackID': 3, 'PreferredRate': 1, 'Rotation': 0, 'TimeScale': 1000, 'TrackHeaderVersion': 0, 'TrackID': 1, 'TrackLayer': 0} : "ColorProfiles" is not in "{'AverageBitrate': 465641, 'BufferSize': 0, 'CompatibleBrands': ['isom', 'iso2', 'avc1', 'mp41'], 'ColorRepresentation': 'nclx 1 1 1', 'CompressorID': 'avc1', 'GraphicsMode': 'srcCopy', 'HandlerDescription': 'SoundHandler', 'HandlerType': 'Metadata', 'HandlerVendorID': 'Apple', 'MajorBrand': 'Base Media v1 [IS0 14496-12:2003]', 'MaxBitrate': 465641, 'MediaDataOffset': 48, 'MediaDataSize': 379872, 'MediaHeaderVersion': 0, 'MinorVersion': '0.2.0', 'MovieDataOffset': 48, 'MovieHeaderVersion': 0, 'NextTrackID': 3, 'PreferredRate': 1, 'Rotation': 0, 'TimeScale': 1000, 'TrackHeaderVersion': 0, 'TrackID': 1, 'TrackLayer': 0}" (mp4)
tests/test_libmat2.py:552: AssertionError
----------------------------- Captured stdout call -----------------------------
[+] Testing pdf
[+] Testing png
[+] Testing jpg
[+] Testing wav
[+] Testing aiff
[+] Testing mp3
[+] Testing ogg
[+] Testing flac
[+] Testing docx
[+] Testing odt
[+] Testing tiff
[+] Testing bmp
[+] Testing torrent
[+] Testing odf
[+] Testing odg
[+] Testing txt
[+] Testing gif
[+] Testing css
[+] Testing svg
[+] Testing ppm
[+] Testing avi
[+] Testing mp4
----------------------------- Captured stderr call -----------------------------
Warning: [minor] Can't delete IFD0 from TIFF - ./tests/data/clean.tiff
=============================== warnings summary ===============================
libmat2/pdf.py:11
/tmp/autopkgtest-lxc.bay8oxam/downtmp/build.7US/src/libmat2/pdf.py:11: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.version import LooseVersion
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_libmat2.py::TestCleaning::test_all_parametred - AssertionEr...
============= 1 failed, 120 passed, 1 warning in 60.21s (0:01:00) ==============
autopkgtest [13:18:09]: test command1: -----------------------]
autopkgtest [13:18:09]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 1
autopkgtest [13:18:09]: @@@@@@@@@@@@@@@@@@@@ summary
command1 FAIL non-zero exit status 1
Log: https://ci.debian.net/data/autopkgtest/unstable/amd64/m/mat2/26606134/log.gz
As we've been there before, I'm wondering if it makes sense to relax this test.
Ref #136 (closed)
Ref #162 (closed)