* debian/patches/coverage_binary.patch: New patch, corrects the name of the

coverage binary.
This commit is contained in:
Michael Banck 2017-09-15 15:24:01 +02:00
parent 59ffe35c65
commit e8c96dcfd8
2 changed files with 34 additions and 0 deletions

33
debian/patches/coverage_binary.patch vendored Normal file
View file

@ -0,0 +1,33 @@
--- ./features/environment.py.orig 2017-09-15 14:09:19.665359208 +0200
+++ ./features/environment.py 2017-09-15 14:10:41.945149858 +0200
@@ -125,7 +125,7 @@
def _start(self):
if self.watchdog:
self.watchdog.start()
- return subprocess.Popen(['coverage', 'run', '--source=patroni', '-p', 'patroni.py', self._config],
+ return subprocess.Popen(['python3-coverage', 'run', '--source=patroni', '-p', 'patroni.py', self._config],
stdout=self._log, stderr=subprocess.STDOUT, cwd=self._work_directory)
def stop(self, kill=False, timeout=15, postgres=False):
@@ -727,8 +727,8 @@
def after_all(context):
context.dcs_ctl.stop()
- subprocess.call(['coverage', 'combine'])
- subprocess.call(['coverage', 'report'])
+ subprocess.call(['python3-coverage', 'combine'])
+ subprocess.call(['python3-coverage', 'report'])
def before_feature(context, feature):
--- ./features/steps/patroni_api.py.orig 2017-09-15 14:11:07.974191619 +0200
+++ ./features/steps/patroni_api.py 2017-09-15 14:11:15.304544131 +0200
@@ -92,7 +92,7 @@
@step('I run {cmd}')
def do_run(context, cmd):
- cmd = ['coverage', 'run', '--source=patroni', '-p'] + shlex.split(cmd)
+ cmd = ['python3-coverage', 'run', '--source=patroni', '-p'] + shlex.split(cmd)
try:
# XXX: Dirty hack! We need to take name/passwd from the config!
env = os.environ.copy()

View file

@ -1,3 +1,4 @@
pgpass_in_testsuite.patch
sphinx_no_mathjax.patch
startup_scripts.patch
coverage_binary.patch