[Pbuilder-maint] pbuilder CVS update: pbuilder/examples B92test-pkg
pbuilder CVS Commit
pbuilder-maint at lists.alioth.debian.org
Tue Jan 24 10:01:49 UTC 2006
User: dancer
Date: 06/01/24 10:01:49
Modified: examples B92test-pkg
Log:
* improve B92test-pkg: cd to package build directory before invoking
test scripts.
Revision Changes Path
1.6 +6 -2 pbuilder/examples/B92test-pkg
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/examples/B92test-pkg?annotate=1.6&cvsroot=
CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/examples/B92test-pkg?rev=1.6&content-type=text/x-cvsweb-markup&cvsroot=
CVSWeb: Diff to previous version: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pbuilder/pbuilder/examples/B92test-pkg.diff?r1=1.6&r2=1.5&cvsroot=
-----------------------------------
Index: B92test-pkg
===================================================================
RCS file: /cvsroot/pbuilder/pbuilder/examples/B92test-pkg,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- B92test-pkg 4 Dec 2005 05:16:37 -0000 1.5
+++ B92test-pkg 24 Jan 2006 10:01:49 -0000 1.6
@@ -5,9 +5,10 @@
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 @@
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
More information about the Pbuilder-maint
mailing list