diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-17 14:45:47 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-17 14:45:47 +0000 |
commit | 9fc9e7fcadd439fcabc86a6494046758f6aa9d58 (patch) | |
tree | 26e393c21dd02bd07507428f33bf8599f50fbef7 /examples/B92test-pkg | |
parent | 783c48740a8ec1bb0c2033362afd20a1ae3d07a8 (diff) | |
download | pbuilder-9fc9e7fcadd439fcabc86a6494046758f6aa9d58.tar pbuilder-9fc9e7fcadd439fcabc86a6494046758f6aa9d58.tar.gz |
use BUILDDIR variable instead of hardcoding /tmp/buildd on hooks examples
Diffstat (limited to 'examples/B92test-pkg')
-rw-r--r-- | examples/B92test-pkg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/B92test-pkg b/examples/B92test-pkg index 1c38188..31e4aba 100644 --- a/examples/B92test-pkg +++ b/examples/B92test-pkg @@ -8,16 +8,16 @@ set -e echo "Installing the prerequisites" -for PKG in $(ls /tmp/buildd/*.deb | sed -e's,.*/,,;s,_.*,,' ); do +for PKG in $(ls "$BUILDDIR"/*.deb | sed -e's,.*/,,;s,_.*,,' ); do apt-get install -y --force-yes "$PKG" || true apt-get remove -y "$PKG" || true done # ignore the failures since they are not the prime interest -dpkg -i /tmp/buildd/*.deb || true +dpkg -i "$BUILDDIR"/*.deb || true apt-get install -y -f --force-yes -if chmod a+x /tmp/buildd/*/debian/pbuilder-test/*; then +if chmod a+x "$BUILDDIR"/*/debian/pbuilder-test/*; then : else echo "W: no pbuilder-test script found, skipping" @@ -30,9 +30,9 @@ unset FAIL || true EXIT_CODE=0 # The current directory is the top of the source-tree. -cd /tmp/buildd/*/debian/.. +cd "$BUILDDIR"/*/debian/.. -for SCRIPT in $(run-parts --test /tmp/buildd/*/debian/pbuilder-test) ; do +for SCRIPT in $(run-parts --test "$BUILDDIR"/*/debian/pbuilder-test) ; do echo "--- BEGIN test: ${SCRIPT##*/}" if "${SCRIPT}"; then echo SUCCESS |