[git-buildpackage] git-mock

Guido Günther agx at sigxcpu.org
Sun Jan 25 12:36:08 CET 2015


On Sun, Jan 25, 2015 at 10:55:42AM +0100, Tzafrir Cohen wrote:
> On Sat, Jan 24, 2015 at 11:17:15PM +0100, Guido Günther wrote:
> > On Tue, Dec 30, 2014 at 11:16:37AM +0100, Tzafrir Cohen wrote:
> > > On Sun, Dec 28, 2014 at 02:27:51PM +0100, Tzafrir Cohen wrote:
> > > > On Sun, Dec 28, 2014 at 01:22:27PM +0100, Guido Günther wrote:
> > > > 
> > > > > ======================================================================
> > > > > ERROR: test suite for <class 'tests.component.rpm.test_pq_rpm.TestPqRpm'>
> > > > 
> > > > Speaking of tests, I think that the following should also be included in
> > > > the branch (unless I missed it elsewhere):
> > > > 
> > > >   http://git.tzafrir.org.il/cgit/git-buildpackage.git/commit/?id=b2d8fa3bdb750ddf974cb605de4e5f0c9b4281cb
> > > > 
> > > > That repo also has a brute-force rebase of buildpackage-rpm on top of
> > > > 0.6.22 (just that command. Others are still missing).
> > > 
> > > On top of that I now have an initial version of --git-mock - using mock
> > > as a chroot builder for rpm packages. I basically copied the way
> > > pbuilder is used (created a separate git-mock and used it as a builder).
> > > Mock is already installed by default with its own permission elavtion
> > > handler.
> > 
> > The tests on buildpackage-rpm branch at
> > git://git.tzafrir.org.il/git/git-buildpackage.git fail for me like:
> 
> Maybe I'm doing something wrong, because tests don't seem to fail here.
> I use the following command (which I saw is run at package build time).
> Is this how I should run the tests?

Yes but maybe you don't have the submodules initialized? It's the
component tests that are failing, e.g.

    tests/component/rpm/test_pq_rpm.py

You need a

    git submodule update --init

otherwise ComponentTestGitRepository.check_testdata will skip these tests.
Cheers,
 -- Guido


More information about the git-buildpackage mailing list