patroni/debian/patches/acceptance_tests_system_patroni.patch
Michael Banck c7be5fde50 Revert commits 2e63c66 to 504752fc.
This reverts the changes made to support raft/pysyncobj, as there are still
failing autopkgtests. Instead, we want to fix the current release critical bug
and get the autopkgtests in shape before moving on to raft/pysyncobj.
2022-02-15 21:04:20 +01:00

15 lines
916 B
Diff

Index: patroni/features/environment.py
===================================================================
--- patroni.orig/features/environment.py
+++ patroni/features/environment.py
@@ -141,8 +141,7 @@ class PatroniController(AbstractControll
if isinstance(self._context.dcs_ctl, KubernetesController):
self._context.dcs_ctl.create_pod(self._name[8:], self._scope)
os.environ['PATRONI_KUBERNETES_POD_IP'] = '10.0.0.' + self._name[-1]
- return subprocess.Popen([sys.executable, '-m', 'coverage', 'run',
- '--source=patroni', '-p', 'patroni.py', self._config],
+ return subprocess.Popen([sys.executable, '-m', 'coverage', 'run', '-p', '/usr/bin/patroni', self._config],
stdout=self._log, stderr=subprocess.STDOUT, cwd=self._work_directory)
def stop(self, kill=False, timeout=15, postgres=False):