[Reproducible-builds] Bug#817193: failing tests: test_gzip.py::test_metadata, test_ipk.py::test_metadata, test_java.py::test_diff

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Aug 15 18:01:48 UTC 2016


I "enabled" the cbfs tests by installing the appropriate dependency (coreboot-utils),
and one more test starting failing:

=================================== FAILURES ===================================
_________________________________ test_listing _________________________________

differences = [<Difference cbfstool {} print -- cbfstool {} print []>, <Difference text -- text []>]

    @pytest.mark.skipif(tool_missing('cbfstool'), reason='missing cbfstool')
    def test_listing(differences):
        expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/cbfs_listing_expected_diff')).read()
>       assert differences[0].unified_diff == expected_diff
E       assert '@@ -1,3 +1,3...      31896\n' == '@@ -1,6 +1,3 ...      31896\n'
E         - @@ -1,3 +1,3 @@
E         ?       ^
E         + @@ -1,6 +1,3 @@
E         ?       ^
E         + -32 kB, bootblocksize 0, romsize 32768, offset 0x0
E         + -alignment: 64 bytes, architecture: x86
E         + -
E            Name                           Offset     Type         Size
E           -text                           0x0        raw          446
E           -(empty)                        0x200      null         32152
E           +text                           0x0        raw          671
E           +(empty)                        0x300      null         31896

tests/comparators/test_cbfs.py:79: AssertionError
---------------------------- Captured stdout setup -----------------------------
--- /tmp/pytest-of-zbyszek/pytest-15/test_listing0/coreboot1
+++ /tmp/pytest-of-zbyszek/pytest-15/test_listing0/coreboot2.rom
├── cbfstool {} print
│ @@ -1,3 +1,3 @@
│  Name                           Offset     Type         Size
│ -text                           0x0        raw          446
│ -(empty)                        0x200      null         32152
│ +text                           0x0        raw          671
│ +(empty)                        0x300      null         31896
├── text
│ @@ -1,6 +1,12 @@
│ +A common form of lorem ipsum reads:
│ +
│  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
│  incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
│  nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
│  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
│  fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
│  culpa qui officia deserunt mollit anim id est laborum.
│ +
│ +"Lorem ipsum" text is derived from sections 1.10.32--3 of Cicero's De finibus
│ +bonorum et malorum (On the Ends of Goods and Evils, or alternatively [About]
│ +The Purposes of Good and Evil).
╵
---------------------------- Captured stderr setup -----------------------------
Created CBFS (capacity = 32664 bytes)
Created CBFS (capacity = 32664 bytes)
============== 1 failed, 202 passed, 29 skipped in 54.96 seconds ===============

Unfortunately Fedora is missing a bunch of the tools required to
support all tests. In particular pdftk has been retired because of licensing
reasons [https://lists.fedoraproject.org/pipermail/devel/2014-March/196394.html],
so some tests will continue to have to be skipped.

Zbyszek



More information about the Reproducible-builds mailing list