[Reproducible-commits] [reprotest] 01/03: Make the file names depend on the current version in the tests
Ceridwen
ceridwen-guest at moszumanska.debian.org
Tue Jul 19 04:45:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
ceridwen-guest pushed a commit to branch virtualization
in repository reprotest.
commit dbcf300773f534cb97468036005eea8c0c80762a
Author: Ceridwen <ceridwenv at gmail.com>
Date: Mon Jul 18 23:18:15 2016 -0400
Make the file names depend on the current version in the tests
---
tests/tests.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/tests.py b/tests/tests.py
index a6944ef..4ddc1d5 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -4,10 +4,13 @@
import os
import subprocess
+import pkg_resources
import pytest
import reprotest
+VERSION = pkg_resources.require('reprotest')[0].version
+
def check_return_code(command, virtual_server, code):
try:
reprotest.check(command, 'artifact', virtual_server, 'tests')
@@ -35,5 +38,5 @@ def test_variations(virtual_server, variation):
check_return_code('python3 mock_build.py ' + variation, virtual_server, 1)
def test_self_build(virtual_server):
- assert(subprocess.call(['reprotest', 'python3 setup.py bdist', 'dist/reprotest-0.1.linux-x86_64.tar.gz'] + virtual_server) == 1)
- # assert(subprocess.call(['reprotest', 'debuild -b -uc -us', '../reprotest_0.1_all.deb'] + virtual_server) == 1)
+ assert(subprocess.call(['reprotest', 'python3 setup.py bdist', 'dist/reprotest-' + VERSION + '.linux-x86_64.tar.gz'] + virtual_server) == 1)
+ # assert(subprocess.call(['reprotest', 'debuild -b -uc -us', '../reprotest_' + VERSION + '_all.deb'] + virtual_server) == 1)
--
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