diff options
author | dancer <dancer> | 2006-01-24 10:01:49 +0000 |
---|---|---|
committer | dancer <dancer> | 2006-01-24 10:01:49 +0000 |
commit | 84d60e5f044216b7c001a1c658ec2eeac594ddf6 (patch) | |
tree | 436ef447b859f8f59601222e33e8131e42847348 /examples | |
parent | ffbd933094399750964a5ccd05549a448cab63a2 (diff) | |
download | pbuilder-84d60e5f044216b7c001a1c658ec2eeac594ddf6.tar pbuilder-84d60e5f044216b7c001a1c658ec2eeac594ddf6.tar.gz |
* improve B92test-pkg: cd to package build directory before invoking
test scripts.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/B92test-pkg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/B92test-pkg b/examples/B92test-pkg index 078e62f..40f25a4 100644 --- a/examples/B92test-pkg +++ b/examples/B92test-pkg @@ -5,9 +5,10 @@ set -e echo "Installing the prerequisites" for PKG in $(ls /tmp/buildd/*.deb | sed -e's,.*/,,;s,_.*,,' ); do - apt-get install -y --force-yes "$PKG" - apt-get remove -y "$PKG" + 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 @@ -17,6 +18,9 @@ COUNT=0 unset FAIL || true NOFAIL=1 +# make current directory a better place to live. +cd /tmp/buildd/*/debian/.. + for SCRIPT in $(run-parts --test /tmp/buildd/*/debian/pbuilder-test) ; do echo "--- BEGIN test: ${SCRIPT##*/}" if "${SCRIPT}"; then |