Commit 59a2042f authored by Chris Lamb's avatar Chris Lamb 💬

test_binwalk: Pass around the result of .compare(..) not its details attribute.

Gbp-Dch: ignore
parent 604c720b
......@@ -42,13 +42,14 @@ def test_no_differences(binwalk1):
def differences(binwalk1, binwalk2):
def comparison(binwalk1, binwalk2):
def test_listing(differences):
def test_listing(comparison):
differences = comparison.details
assert differences[0].source1 == '0.cpio'
assert differences[1].source2 == '600.cpio'
......@@ -58,7 +59,8 @@ def test_listing(differences):
def test_symlink(differences):
def test_symlink(comparison):
differences = comparison.details
assert differences[0].details[1].source1 == 'dir/link'
assert differences[0].details[1].comment == 'symlink'
expected_diff = get_data('symlink_expected_diff')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment