Re: Test failures
On Sat, Mar 28, 2009 at 11:47:06AM -0700, Russ Allbery wrote:
> Raphael Geissert <atomo64+debian@gmail.com> writes:
> > Frank Lichtenheld wrote:
>
> >> Running test scripts-diversions 1.0... building... testing... FAILED:
> >> --- t/tests/scripts-diversions/tags 2009-03-15 23:59:59.000000000 +0100
> >> +++ debian/tests/tags.scripts-diversions 2009-03-28 16:42:09.000000000
> >> +0100 @@ -2,4 +2,3 @@
> >> E: scripts-diversions: orphaned-diversion usr/share/scripts/orphan
> >> preinst E: scripts-diversions: package-uses-local-diversion preinst:12
> >> E: scripts-diversions: package-uses-local-diversion preinst:16
> >> -E: scripts-diversions: remove-of-unknown-diversion
> >> usr/share/scripts/old-file postrm:12 Running test binaries-from-other-arch
> >> 1.0... building... testing... FAILED:
>
> > No idea, but you are not alone:
> > $ debian/rules runtests onlyrun=scripts-diversions
> > [...]
> > Running test scripts-diversions 1.0... building... testing... FAILED:
> > --- t/tests/scripts-diversions/tags 2009-03-25 11:21:43.000000000 -0600
> > +++ debian/tests/tags.scripts-diversions 2009-03-28
> > 11:45:03.000000000 -0600
> > @@ -2,4 +2,3 @@
> > E: scripts-diversions: orphaned-diversion usr/share/scripts/orphan preinst
> > E: scripts-diversions: package-uses-local-diversion preinst:12
> > E: scripts-diversions: package-uses-local-diversion preinst:16
> > -E: scripts-diversions: remove-of-unknown-diversion
> > usr/share/scripts/old-file postrm:12
> > make: *** [runtests] Error 1
>
> But it works fine here:
>
> LINTIAN_ROOT="" /usr/bin/perl t/runtests -k t debian/tests scripts-diversions
> Package tests:
> Running test scripts-diversions 1.0... building... testing... ok.
>
> I'm mystified, since I can't see anything about this check that would
> change based on what system it was run on, or any remaining ordering
> problems with what order in which the maintainer scripts were read.
It is a ordering problem. The diversion is removed both in postinst and postrm,
and whether the tag is issued depends on which of those files is read last, since
it will then overwrite the entry in %removed_diversions. The tag will only be
issued if postrm was read last.
Gruesse,
--
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/
Reply to: