[reprotest] 01/01: Hopefully fix the autopkgtest tests

Ximin Luo infinity0 at debian.org
Fri Oct 20 10:34: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 f8745359b4615325ae64716b040c4b7d4ef8cc9e
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Oct 20 12:34:31 2017 +0200

    Hopefully fix the autopkgtest tests
---
 debian/changelog        | 6 ++++++
 debian/tests/control    | 6 +++++-
 setup.py                | 2 +-
 tests/test_reprotest.py | 2 ++
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 06dee22..7917c7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+reprotest (0.7.4) UNRELEASED; urgency=medium
+
+  * Hopefully fix the autopkgtest tests.
+
+ -- Ximin Luo <infinity0 at debian.org>  Fri, 20 Oct 2017 12:33:21 +0200
+
 reprotest (0.7.3) unstable; urgency=medium
 
   * Fix --no-clean-on-error, it should work again.
diff --git a/debian/tests/control b/debian/tests/control
index f5ed55e..3e74024 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1 +1,5 @@
-Test-Command: env REPROTEST_TEST_DONTVARY=fileordering,user_group pytest-3
+Test-Command: env REPROTEST_TEST_DONTVARY=fileordering,user_group pytest-3 -m 'not need_builddeps'
+Depends: @, python3-pytest, faketime, locales-all
+
+Test-Command: env REPROTEST_TEST_DONTVARY=fileordering,user_group pytest-3 -m 'need_builddeps'
+Depends: @builddeps@
diff --git a/setup.py b/setup.py
index ace7a42..04974da 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@
 from setuptools import setup, find_packages
 
 setup(name='reprotest',
-      version='0.7.3',
+      version='0.7.4',
       description='Build packages and check them for reproducibility.',
       long_description=open('README.rst', encoding='utf-8').read(),
       author='Ximin Luo, Ceridwen',
diff --git a/tests/test_reprotest.py b/tests/test_reprotest.py
index 51cc9dd..19aff73 100644
--- a/tests/test_reprotest.py
+++ b/tests/test_reprotest.py
@@ -62,6 +62,7 @@ def test_variations(virtual_server, captures):
     expected = captures not in TEST_VARIATIONS
     check_reproducibility('python3 mock_build.py ' + captures, virtual_server, expected)
 
+ at pytest.mark.need_builddeps
 def test_self_build(virtual_server):
     # at time of writing (2016-09-23) these are not expected to reproduce;
     # if these start failing then you should change 1 == to 0 == but please
@@ -100,6 +101,7 @@ def test_command_lines():
     assert testbed_args.virtual_server_args == ['schroot', 'unstable-amd64-sbuild']
 
 # TODO: don't call it if we don't have debian/, e.g. for other distros
+ at pytest.mark.need_builddeps
 def test_debian_build(virtual_server):
     # This is a bit dirty though it works - when building the debian package,
     # debian/rules will call this, which will call debian/rules, so ../*.deb

-- 
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