Comment 1 for bug 2022915

Revision history for this message
nikhil kshirsagar (nkshirsagar) wrote (last edit ):

Additional patch built on top of upstream sos 4.5.4 is in these packages, patch is https://github.com/sosreport/sos/pull/3263 which fixes https://github.com/sosreport/sos/issues/3261 (Thanks for this fix Arif++)

Also, this release has an exclude clause in the debian/rules under override_dh_auto_test to skip unittests/policy_tests.py due to the avocado dependency introduced due to https://github.com/sosreport/sos/commit/c59ab1c169098fd3a173a68e09373bdc2498139a
Without that , the build fails with,
~~~
test_tail_too_many (tests.unittests.utilities_tests.TailTest) ... ok

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'avocado')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/<<PKGBUILDDIR>>/tests/unittests/policy_tests.py", line 10, in <module>
    from avocado.utils import distro
ModuleNotFoundError: No module named 'avocado'
~~~
Uploading all the debdiffs, starting with mantic.