Path: csiph.com!au2pb.net!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: Help with pytest 2.8.5 Date: Thu, 17 Dec 2015 13:20:02 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Dec 17 12:16:22 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (3.16.0-4-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/13307 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20151217121554.GY16403@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 17 Dec 2015 13:15:54 +0100 X-Original-Message-ID: <20151217121554.GY16403@sar0.p1otr.com> X-Original-References: <20151216191736.02c2dd33@limelight.wooz.org> Xref: csiph.com linux.debian.maint.python:7989 > diff --git a/debian/rules b/debian/rules > index f473395..3c2f918 100755 > --- a/debian/rules > +++ b/debian/rules > @@ -59,8 +59,9 @@ override_dh_clean: > override_dh_auto_test: > ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) > set -ex; \ > + cd /tmp; \ > for py in $(PYVERS) $(PY3VERS); do \ > - PYTHONPATH=$(CURDIR) python$$py -m pytest testing ; \ > + PYTHONPATH=$(CURDIR) python$$py -m pytest $(CURDIR)/testing ; \ PYTHONPATH=$(CURDIR) part looks very suspicious (and error prone) > done > endif I didn't test it but... why is override_dh_auto_test needed at all? Did you try with: export PYBUILD_TEST_ARGS={dir}/testing ? (only "test" or "tests" are copied to build dir by default, you need to pass path to directory with tests if they're in non standard location) -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645