Many improvements for the release-testing script
* Don't abort on first failure, but log it and print a summary at the end. * Allow to choose which distributions to test via environment variable $DISTRIBUTIONS. * Don't overwrite log files from previous runs. Add a time stamp to the log file name instead.
This commit is contained in:
@@ -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)
|
||||
|
||||
1
debian/changelog
vendored
1
debian/changelog
vendored
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user