[pkg-perl-tools] 03/04: examples/check-build: show adt-run result with /usr/bin/notify-send.
gregor herrmann
gregoa at debian.org
Fri May 20 12:27:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository pkg-perl-tools.
commit 01b04a44896163fdac43a151966bcb1d3c7afdf6
Author: gregor herrmann <gregoa at debian.org>
Date: Fri May 20 14:25:21 2016 +0200
examples/check-build: show adt-run result with /usr/bin/notify-send.
---
examples/check-build | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/examples/check-build b/examples/check-build
index 7648df2..dd9550e 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -97,9 +97,21 @@ if grep -q 'Testsuite: autopkgtest' debian/control; then
fi
if [ -n "$ADT_VIRT_SERVER" ]; then
adt-run --changes $CHANGES --log-file="$ADTLOG" --- \
- $ADT_VIRT_SERVER $ADT_VIRT_SERVER_ARGS \
- || echo "W: autopkgtest failed"
+ $ADT_VIRT_SERVER $ADT_VIRT_SERVER_ARGS
+ SUCCESS=$?
+ case $SUCCESS in
+ 0)
+ URGENCY=normal
+ ;;
+ *)
+ echo "W: autopkgtest failed"
+ URGENCY=critical
+ ;;
+ esac
exec 0</dev/tty
+ if [ -x /usr/bin/notify-send -a -n "$DISPLAY" ] ; then
+ notify-send -u $URGENCY -t 5000 "adt-run finished" "$(dpkg-parsechangelog | egrep '^(Source|Version)')"
+ fi
else
echo "W: Could find no adt-run virtualization server."
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list