Copy away output directories of failed acceptance tests. (#967)

And dump logs on travis from only failed features
This commit is contained in:
Michael Banck
2019-02-13 16:00:15 +01:00
committed by Alexander Kukushkin
parent d01a9bdcd5
commit 345e6d3131
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ script:
echo Running acceptance tests using python${pv}
if ! PATH=.:/usr/lib/postgresql/9.6/bin:$PATH $TEST_SUITE; then
# output all log files when tests are failing
grep . features/output/*/*postgres?.*
grep . features/output/*_failed/*postgres?.*
exit 1
fi
fi
+2
View File
@@ -823,3 +823,5 @@ def after_feature(context, feature):
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')