Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7204
| From | Nikolaus Rath <Nikolaus@rath.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: pybuild: how to pass multiple test args? |
| Date | 2015-08-23 06:20 +0200 |
| Message-ID | <q0uVb-6Dz-1@gated-at.bofh.it> (permalink) |
| References | <q0tFL-4J3-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Aug 22 2015, Nikolaus Rath <Nikolaus@rath.org> wrote:
> Hello,
>
> I have the following in debian/rules:
>
> export PYBUILD_TEST_PYTEST=1
> export PYBUILD_TEST_ARGS="--installed {dir}/test/"
>
> In unstable, this gives the following result:
>
> make[1]: Leaving directory '/«BUILDDIR»/python-llfuse-0.41.1+dfsg'
> dh_auto_test -O--buildsystem=pybuild
> pybuild --test --test-pytest -i python{version} -p 2.7 --dir .
> I: pybuild base:170: cd /«BUILDDIR»/python-llfuse-0.41.1+dfsg/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest "--installed /«BUILDDIR»/python-llfuse-0.41.1+dfsg/test/"
> ============================= test session starts ==============================
> platform linux2 -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2
> rootdir: /«BUILDDIR»/python-llfuse-0.41.1+dfsg, inifile:
> ERROR: file not found: --installed /«BUILDDIR»/python-llfuse-0.41.1+dfsg/test/
>
> In other words, the two arguments are passed as one.
>
> How can I pass them separately?
Turns out I fell victim to the idiosyncratic Makefile syntax. In the
Makefile, variable values with spaces don't need to be quoted, so the
following works:
export PYBUILD_TEST_ARGS=--installed "{dir}/test/"
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar
pybuild: how to pass multiple test args? Nikolaus Rath <Nikolaus@rath.org> - 2015-08-23 05:00 +0200 Re: pybuild: how to pass multiple test args? Nikolaus Rath <Nikolaus@rath.org> - 2015-08-23 06:20 +0200
csiph-web