Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7204

Re: pybuild: how to pass multiple test args?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Nikolaus Rath <Nikolaus@rath.org>
Newsgroups linux.debian.maint.python
Subject Re: pybuild: how to pass multiple test args?
Date Sun, 23 Aug 2015 06:20:02 +0200
Message-ID <q0uVb-6Dz-1@gated-at.bofh.it> (permalink)
References <q0tFL-4J3-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Aug 23 04:14:52 2015
Old-Return-Path <Nikolaus@rath.org>
X-Amavis-Spam-Status No, score=-2.62 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -7
Dkim-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=UzkpjABywzRHqho t098yAeQSrtQ=; b=IZ8n31e+lB1C2V4wRJRJ5L9LkAZOb7p2EpPT2cW7KJxExLA cFE5nvJNZDvQC+zuLMLNjEaF/52A06F24uFivvYkK1mLckvlDPOCaqWUxGOe26y8 upg9DLoOQqcxYLwhwuZUrcsWfCCYXo44pXHwhBYJf/0bCtpAP8rprdAiAxvg=
X-Sasl-Enc c/YbYIESzJNJbpMNxQNYDZ6lmo0EgVlUwIr0boR7LGEu 1440303278
Mail-Copies-To never
Mail-Followup-To debian-python@lists.debian.org
User-Agent Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-python@lists.debian.org> archive/latest/12511
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/87io86zln6.fsf@vostro.rath.org
Approved robomod@news.nic.it
Lines 45
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 22 Aug 2015 21:14:37 -0700
X-Original-Message-ID <87io86zln6.fsf@vostro.rath.org>
X-Original-References <87lhd2zpb2.fsf@vostro.rath.org>
Xref csiph.com linux.debian.maint.python:7204

Show key headers only | View raw


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 | NextPrevious in thread | Find similar


Thread

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