Re: Passing arguments to nosetests in debian/rules:override_dh_auto_test

2014-07-07 Thread Piotr Ożarowski
[Josue Ortega, 2014-07-06]
 Currently I am packging oct2py[0] which is a bridge between python and GNU 
 octave
 Since some unit tests had issues with memory, upstream started to pass some 
 arguments to the nosetests[1], since this arguments are passed in upstream
 travis.yml and Makefile they aren't taken by dh_auto_test.
 
 I am using pybuild and I want to pass this arguments in the 
 override_dh_auto_test
 section.

override_dh_auto_test:
dh_auto_test -- --test-args='--foo bar --baz'

or at the top of debian/rules:

export PYBUILD_TEST_ARGS=--foo bar --baz
-- 
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


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140707071922.gv...@sts0.p1otr.com



Passing arguments to nosetests in debian/rules:override_dh_auto_test

2014-07-06 Thread Josue Ortega
Hi,

Currently I am packging oct2py[0] which is a bridge between python and GNU 
octave
Since some unit tests had issues with memory, upstream started to pass some 
arguments to the nosetests[1], since this arguments are passed in upstream
travis.yml and Makefile they aren't taken by dh_auto_test.

I am using pybuild and I want to pass this arguments in the 
override_dh_auto_test
section.

How can I pass them? and which is the right way to do it?

Cheers

[0]: https://github.com/blink1073/oct2py
[1]: https://github.com/blink1073/oct2py/issues/45

---
Josue Ortega
«Happy Hacking»
http://josueortega.org

signature.asc
Description: Digital signature


Re: Passing arguments to nosetests in debian/rules:override_dh_auto_test

2014-07-06 Thread Paul Wise
On Mon, Jul 7, 2014 at 2:45 AM, Josue Ortega wrote:

 How can I pass them? and which is the right way to do it?

According to the nosetests manual page the right way to do it is for
upstream to delete the options from the Makefile and from travis.yaml
and put them in a [nosetests] section in the setup.cfg file. Please
read the manual page and send them a patch to do that.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAKTje6HVO+REozgZ+Y9ZLMmX9WOEv2YuPMk=zjcqjvvvg49...@mail.gmail.com