[reprotest] 01/01: main: fix diffoscope_args defaults for new behaviour

Ximin Luo infinity0 at debian.org
Sat Dec 2 21:09:54 UTC 2017


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit 71a518259779162b3446d9cc04cbc154df4d289d
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sat Dec 2 22:08:12 2017 +0100

    main: fix diffoscope_args defaults for new behaviour
---
 reprotest/__init__.py   | 2 +-
 tests/test_reprotest.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index b729ded..f2a13a3 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -267,7 +267,7 @@ class TestArgs(collections.namedtuple('_Test',
     'build_command source_root artifact_pattern result_dir source_pattern no_clean_on_error diffoscope_args')):
     @classmethod
     def of(cls, build_command, source_root, artifact_pattern, result_dir=None,
-                source_pattern=None, no_clean_on_error=False, diffoscope_args=[]):
+                source_pattern=None, no_clean_on_error=False, diffoscope_args=['diffoscope']):
         artifact_pattern = shell_syn.sanitize_globs(artifact_pattern)
         logger.debug("artifact_pattern sanitized to: %s", artifact_pattern)
 
diff --git a/tests/test_reprotest.py b/tests/test_reprotest.py
index 604cc5f..5ee9a08 100644
--- a/tests/test_reprotest.py
+++ b/tests/test_reprotest.py
@@ -22,7 +22,7 @@ TEST_VARIATIONS = frozenset(VARIATIONS.keys()) - frozenset(REPROTEST_TEST_DONTVA
 
 def check_reproducibility(command, virtual_server, reproducible):
     result = reprotest.check(
-        reprotest.TestArgs.of(command, 'tests', 'artifact', diffoscope_args=[]),
+        reprotest.TestArgs.of(command, 'tests', 'artifact'),
         reprotest.TestbedArgs.of(virtual_server),
         Variations.of(VariationSpec.default(TEST_VARIATIONS)))
     assert result == reproducible

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



More information about the Reproducible-commits mailing list