Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7989
| From | Piotr Ożarowski <piotr@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Help with pytest 2.8.5 |
| Date | 2015-12-17 13:20 +0100 |
| Message-ID | <qGFHk-7JC-1@gated-at.bofh.it> (permalink) |
| References | <qGusx-oe-3@gated-at.bofh.it> <qGEUW-79i-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> 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
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help with pytest 2.8.5 Barry Warsaw <barry@debian.org> - 2015-12-17 01:20 +0100
Re: Help with pytest 2.8.5 Piotr Ożarowski <piotr@debian.org> - 2015-12-17 13:20 +0100
Re: Help with pytest 2.8.5 Tristan Seligmann <mithrandi@mithrandi.net> - 2015-12-17 13:50 +0100
Re: Help with pytest 2.8.5 Barry Warsaw <barry@debian.org> - 2015-12-17 16:10 +0100
csiph-web