From 44fc213fc796ba7ea3f3160bec38a34d5290188c Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 17 Jan 2017 21:20:01 +0100 Subject: [PATCH] release-testing: Add some helpful output and raise waiting time to 10 seconds --- examples/release-testing | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/release-testing b/examples/release-testing index e70ee6a..a1ca22f 100755 --- a/examples/release-testing +++ b/examples/release-testing @@ -6,13 +6,19 @@ exec 2>&1 | tee xen-tools-release-testing.log DISTRIBUTIONS=$(awk '!/^#|^$|dont-test/ {print $1}' /etc/xen-tools/distributions.conf) +echo Deleting old release-testing artefacts for dist in $DISTRIBUTIONS; do + echo "*** Removing potential xen-tools-release-testing-$dist..." xen-delete-image --verbose --hostname "xen-tools-release-testing-$dist" done +echo Syncing... sync -sleep 5 +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'; 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 "$@" done