patroni/debian/patches/behave_failure_logging.patch
Michael Banck df088977ed * debian/patches/behave_failure_logging.patch: New patch, copy over output
directory of a failed feature with `_failed' at the end.
  * debian/tests/acceptance: Dump logs for failed features.
2018-09-25 15:44:49 +02:00

9 lines
417 B
Diff

--- ./features/environment.py_ 2018-09-25 13:20:02.659994338 +0200
+++ ./features/environment.py 2018-09-25 13:32:35.455221988 +0200
@@ -813,3 +813,5 @@
context.pctl.stop_all()
shutil.rmtree(os.path.join(context.pctl.patroni_path, 'data'))
context.dcs_ctl.cleanup_service_tree()
+ if feature.status == 'failed':
+ shutil.copytree(context.pctl.output_dir, context.pctl.output_dir + "_failed")