[diffoscope] 06/10: Update requirements for ELF tests

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jan 20 16:11:44 CET 2016


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit 84cc27a687031455ecc97262dc47e86b43f29273
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jan 20 13:41:13 2016 +0000

    Update requirements for ELF tests
    
    We need both readelf and objdump now.
---
 tests/comparators/test_elf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/comparators/test_elf.py b/tests/comparators/test_elf.py
index fbf04d1..1c23786 100644
--- a/tests/comparators/test_elf.py
+++ b/tests/comparators/test_elf.py
@@ -82,7 +82,7 @@ def test_lib_no_differences(lib1):
 def lib_differences(lib1, lib2):
     return lib1.compare(lib2).details
 
- at pytest.mark.skipif(tool_missing('readelf'), reason='missing readelf')
+ at pytest.mark.skipif(tool_missing('readelf') or tool_missing('objdump'), reason='missing readelf or objdump')
 def test_lib_differences(lib_differences):
     assert len(lib_differences) == 2
     assert lib_differences[0].source1 == 'metadata'
@@ -92,7 +92,7 @@ def test_lib_differences(lib_differences):
     expected_objdump_diff = open(os.path.join(os.path.dirname(__file__), '../data/elf_lib_objdump_expected_diff')).read()
     assert lib_differences[1].unified_diff == expected_objdump_diff
 
- at pytest.mark.skipif(tool_missing('readelf'), reason='missing readelf')
+ at pytest.mark.skipif(tool_missing('readelf') or tool_missing('objdump'), reason='missing readelf')
 def test_lib_compare_non_existing(monkeypatch, lib1):
     monkeypatch.setattr(Config, 'new_file', True)
     difference = lib1.compare(NonExistingFile('/nonexisting', lib1))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list