]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch
correct cross & disappear progress detection
[apt.git] / test / integration / test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch
index d9fd3d30dfaa54f6b5b60233bed798f004c5e276..9c96bbe529d7aa8317041b25a7906d81e309d54e 100755 (executable)
@@ -32,7 +32,7 @@ if [ -n \"${2}\" ]; then
        FD=\$APT_HOOK_INFO_FD
        if [ "\$FD" != \"${2}\" ]; then echo \"ERROR: Information is not on requested FD: \$FD != ${2}\" >> ${hook}-v${1}.list; fi
 fi
-while read </proc/\$\$/fd/\$FD line; do
+while read </dev/fd/\$FD line; do
        if echo \"\$line\" | grep -Fq '**'; then
                echo \"\$line\"
        fi
@@ -48,7 +48,7 @@ DPkg::Tools::options::\"./${hook}-v${1}.sh\"::Version \"$1\";" > rootdir/etc/apt
 observehook() {
        rm -f ${hook}-v2.list ${hook}-v3.list
        msgtest 'Observe hooks while' "$*"
-       testsuccess --nomsg aptget "$@" -y --allow-downgrades --planner $planner
+       testsuccess --nomsg aptget "$@" -y --allow-downgrades --planner $planner -o Debug::pkgDPkgProgressReporting=1
        # different planners have different orders – we don't care in this test here
        if [ -e ${hook}-v2.list ]; then
                sort < ${hook}-v2.list > ${hook}-v2.list.new