This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository pkg-perl-tools.

commit 1f6cbb56f11a65f4ba161a3cd8bbb430d7711ed3
Author: intrigeri <intrig...@boum.org>
Date:   Mon Aug 10 15:03:32 2015 +0000

    check-build: redirect STDIN from /dev/tty after adt-run has finished.
    
    When using the adt-virt-qemu virtualization server, adt-run leaves STDIN
    in a weird state, that's not good enough for bash's `read':
    
      read: read error: 0: Resource temporarily unavailable
    
    This trick is enough to workaround that bug for me.
---
 examples/check-build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/check-build b/examples/check-build
index 428f2cd..1c20b8e 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -98,6 +98,7 @@ if grep -q 'Testsuite: autopkgtest' debian/control; then
                if [ -n "$ADT_VIRT_SERVER" ]; then
                        adt-run --changes $CHANGES --log-file="$ADTLOG" --- \
                                $ADT_VIRT_SERVER $ADT_VIRT_SERVER_ARGS
+                               exec 0</dev/tty
                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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to