patroni/debian/patches/coverage_binary.patch
2017-09-15 15:24:01 +02:00

34 lines
1.4 KiB
Diff

--- ./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()