[Reproducible-commits] [diffoscope] 03/03: fsimage tests: Use .synchronized_compare
Joachim Breitner
nomeata at moszumanska.debian.org
Thu Dec 3 15:37:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch pu/parallel2
in repository diffoscope.
commit d20e1d1c020781ca28f816c241b22c189e491ca5
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Thu Dec 3 16:31:41 2015 +0100
fsimage tests: Use .synchronized_compare
---
tests/comparators/test_fsimage.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/comparators/test_fsimage.py b/tests/comparators/test_fsimage.py
index 7cdc15c..45e75f7 100644
--- a/tests/comparators/test_fsimage.py
+++ b/tests/comparators/test_fsimage.py
@@ -59,12 +59,12 @@ def test_identification(img1):
@pytest.mark.skipif(tool_missing('qemu-img'), reason='missing qemu-img')
@pytest.mark.skipif(miss_guestfs, reason='guestfs is missing')
def test_no_differences(img1):
- difference = img1.compare(img1)
+ difference = img1.synchronized_compare(img1)
assert difference is None
@pytest.fixture
def differences(img1, img2):
- return img1.compare(img2).details
+ return img1.synchronized_compare(img2).details
@pytest.mark.skipif(not guestfs_working(), reason='guestfs not working on the system')
@pytest.mark.skipif(tool_missing('qemu-img'), reason='missing qemu-img')
@@ -89,6 +89,6 @@ def test_differences(differences):
@pytest.mark.skipif(miss_guestfs, reason='guestfs is missing')
def test_compare_non_existing(monkeypatch, img1):
monkeypatch.setattr(Config.general, 'new_file', True)
- difference = img1.compare(NonExistingFile('/nonexisting', img1))
+ difference = img1.synchronized_compare(NonExistingFile('/nonexisting', img1))
assert difference.source2 == '/nonexisting'
assert difference.details[-1].source2 == '/dev/null'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list