X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ecb777ddb4d13bb7a18bbf2ebb8e2c810dcaeb72..a0ed43f7323b9d7976ed0ba8d437a42e24af9eaf:/test/integration/test-bug-769609-triggers-still-pending-after-run diff --git a/test/integration/test-bug-769609-triggers-still-pending-after-run b/test/integration/test-bug-769609-triggers-still-pending-after-run index 0588b793f..bd43578a5 100755 --- a/test/integration/test-bug-769609-triggers-still-pending-after-run +++ b/test/integration/test-bug-769609-triggers-still-pending-after-run @@ -1,8 +1,8 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'amd64' @@ -20,25 +20,22 @@ buildtriggerpackages() { local TYPE="$1" setupsimplenativepackage "triggerable-$TYPE" 'all' '1.0' 'unstable' "Depends: trigdepends-$TYPE" BUILDDIR="incoming/triggerable-${TYPE}-1.0" - cat >${BUILDDIR}/debian/postinst <"${BUILDDIR}/debian/postinst" < ${BUILDDIR}/debian/triggers + echo "$TYPE /usr/share/doc" > "${BUILDDIR}/debian/triggers" buildpackage "$BUILDDIR" 'unstable' 'main' 'native' rm -rf "$BUILDDIR" buildsimplenativepackage "trigdepends-$TYPE" 'all' '1.0' 'unstable' } -# FIXME: implement test with activate-style triggers #buildtriggerpackages 'interest' buildtriggerpackages 'interest-noawait' - buildsimplenativepackage "trigstuff" 'all' '1.0' 'unstable' - setupaptarchive runtests() {