diff --git a/NEWS.markdown b/NEWS.markdown index f2d5ee4..8612683 100644 --- a/NEWS.markdown +++ b/NEWS.markdown @@ -37,6 +37,7 @@ Other Changes * Change all occurrences of `httpredir.debian.org` to `deb.debian.org` except those for the `debian-archive`. The latter now point to `archive.debian.org` directly. +* Many improvements for the release-testing script. xen-tools 4.7 (released 23 Jan 2017) diff --git a/debian/changelog b/debian/changelog index 35ee107..df10c23 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,7 @@ xen-tools (4.8-1) UNRELEASED; urgency=medium + Set Ubuntu fallback suite to the latest LTS, i.e. 18.04 Bionic. + Drop pygrub path detection from xm.tmpl, Xen prefers a path-less bootloader='pygrub'. + + Many improvements for the release-testing script. [ Nico Boehr ] + Add support for LVM thin provisioning. diff --git a/examples/release-testing b/examples/release-testing index a1ca22f..84f68e3 100755 --- a/examples/release-testing +++ b/examples/release-testing @@ -2,9 +2,11 @@ set -e -exec 2>&1 | tee xen-tools-release-testing.log +exec 2>&1 | tee xen-tools-release-testing-$(date -Iseconds).log -DISTRIBUTIONS=$(awk '!/^#|^$|dont-test/ {print $1}' /etc/xen-tools/distributions.conf) +if [ -z "$DISTRIBUTIONS" ]; then + DISTRIBUTIONS=$(awk '!/^#|^$|dont-test/ {print $1}' /etc/xen-tools/distributions.conf) +fi echo Deleting old release-testing artefacts for dist in $DISTRIBUTIONS; do @@ -18,7 +20,30 @@ seconds=10 printf "Sleeping for %i seconds to avoid LVM race conditions: " $seconds for i in $(seq 1 $seconds); do sleep 1; printf "%i " $i; done; printf '\n'; +SUCCEEDED='' +FAILED='' + +# From now on we just want to log failures, not abort. +set +e + for dist in $DISTRIBUTIONS; do echo "*** Creating xen-tools-release-testing-$dist..." xen-create-image --verbose --hostname "xen-tools-release-testing-$dist" --dist $dist --force "$@" + + if [ "$?" -eq '0' ]; then + SUCCEEDED="$dist $SUCCEEDED" + else + FAILED="$dist $FAILED" + fi done + +echo '' +echo '======================================================================' +if [ -z "$FAILED" ]; then + echo '*** All tests succeeded! ***' +elif [ -z "$SUCCEEDED!" ]; then + echo '*** All tests failed! ***' +else + echo "*** These distributions succeeded: $SUCCEEDED ***" + echo "*** These distributions failed: $FAILED ***" +fi