Blame 0001-tests-make-test_cbfs-test_listing-pass-on-Fedora.patch

5e967f5
From 57cff5e64fbbbae2b65fce137d01aa0a3addea7b Mon Sep 17 00:00:00 2001
5e967f5
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
5e967f5
Date: Sun, 1 Dec 2019 18:50:12 +0100
5e967f5
Subject: [PATCH] tests: make test_cbfs::test_listing pass on Fedora
5e967f5
5e967f5
---
5e967f5
 tests/comparators/test_cbfs.py               | 1 +
5e967f5
 tests/data/cbfs_listing_expected_fedora.diff | 7 +++++++
5e967f5
 2 files changed, 8 insertions(+)
5e967f5
 create mode 100644 tests/data/cbfs_listing_expected_fedora.diff
5e967f5
5e967f5
diff --git a/tests/comparators/test_cbfs.py b/tests/comparators/test_cbfs.py
5e967f5
index d08578856f..3e0696b06d 100644
5e967f5
--- a/tests/comparators/test_cbfs.py
5e967f5
+++ b/tests/comparators/test_cbfs.py
5e967f5
@@ -130,6 +130,7 @@ def test_listing(differences):
5e967f5
         get_data('cbfs_listing_expected_diff'),
5e967f5
         get_data('cbfs_listing_no_legacy_header_expected_diff'),
5e967f5
         get_data('cbfs_listing_comp_column_expected.diff'),  # cbfs >= 4.6
5e967f5
+        get_data('cbfs_listing_expected_fedora.diff'),  # cbfs >= 4.9?
5e967f5
     )
5e967f5
 
5e967f5
 
5e967f5
diff --git a/tests/data/cbfs_listing_expected_fedora.diff b/tests/data/cbfs_listing_expected_fedora.diff
5e967f5
new file mode 100644
5e967f5
index 0000000000..8c0301f2e3
5e967f5
--- /dev/null
5e967f5
+++ b/tests/data/cbfs_listing_expected_fedora.diff
5e967f5
@@ -0,0 +1,7 @@
5e967f5
+@@ -1,4 +1,4 @@
5e967f5
+ FMAP REGION: COREBOOT
5e967f5
+ Name                           Offset     Type           Size   Comp
5e967f5
+-text                           0x0        raw               446 none
5e967f5
+-(empty)                        0x200      null            32152 none
5e967f5
++text                           0x0        raw               671 none
5e967f5
++(empty)                        0x300      null            31896 none