#!/bin/sh set -e cleanup () { retval=$? set +e if [ -n "${AUTOPKGTEST_ARTIFACTS}" ]; then for f in /etc/my.cnf /var/log/puppet-apply.log; do [ -f "$f" ] && cp "$f" "$AUTOPKGTEST_ARTIFACTS" done if [ -d /run/systemd/system ]; then journalctl -u postgresql.service > "${AUTOPKGTEST_ARTIFACTS}/postgresql.service.log" fi fi return $retval } trap cleanup EXIT cd debian/tests rspec --format documentation spec/*_spec.rb