Re: Terminal Pager at unit tests

2014-09-09 Thread Jakub Wilk

* Josue Ortega josueort...@debian.org.gt, 2014-09-08, 21:21:
When the tests are running the docstrings are displayed in a terminal 
pager making impossible run all tests without human interaction to 
close the pager. I've found this really annoying if someone wants to 
build the package even the build process might fail if it's running on 
an automated enviroment. I could't find an elegant way to disable the 
terminal pager.


Programs launching pagers must honour the PAGER environment variable 
(see Policy §11.4). So adding this to debian/rules should do the trick:


export PAGER = cat

--
Jakub Wilk


--
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/20140909105957.ga3...@jwilk.net



Re: Terminal Pager at unit tests

2014-09-09 Thread Josué Ortega
On Tue, Sep 9, 2014 at 4:59 AM, Jakub Wilk jw...@debian.org wrote:

 * Josue Ortega josueort...@debian.org.gt, 2014-09-08, 21:21:

 When the tests are running the docstrings are displayed in a terminal
 pager making impossible run all tests without human interaction to close
 the pager. I've found this really annoying if someone wants to build the
 package even the build process might fail if it's running on an automated
 enviroment. I could't find an elegant way to disable the terminal pager.


 Programs launching pagers must honour the PAGER environment variable (see
 Policy §11.4). So adding this to debian/rules should do the trick:

 export PAGER = cat

 --
 Jakub Wilk


 --
 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/20140909105957.ga3...@jwilk.net



Thanks Jakub!!

-- 
Josue Ortega
Happy Hacking
http://josueortega.org
PGP key 4096R/AB4AFD3F 2012-08-20
Fingerprint = 7733 B328 D279 5F5B E232  5ADD 0150 9D5C AB4A FD3F


Terminal Pager at unit tests

2014-09-08 Thread Josue Ortega
Hi, 
Currently I am working on the debianization of oct2py[1] which is 
a bridge between Python an GNU Octave. 
When the tests are running the docstrings are displayed in a terminal pager
making impossible run all tests without human interaction to close the 
pager. I've found this really annoying if someone wants to build the package
even the build process might fail if it's running on an automated enviroment.
I could't find an elegant way to disable the terminal pager. 
Since I've noticed that the terminal pager does not run when the package is 
built with cowbuilder I've added a workarround that is:

override_dh_auto_test:
python2 -m unittest discover -v  /dev/null
python3 -m unittest discover -v  /dev/null

This avoids the annoying pager, but I am not happy with this solution 
and I am not sure if it's correct.
Anyone of you know how disable the terminal pager in an elegant way?
Here is the repo url, if anyone wants to check it out[2]

Thanks

[1]: https://github.com/blink1073/oct2py
[2]: http://anonscm.debian.org/viewvc/python-modules/packages/oct2py/
---
Josue Ortega
«Happy Hacking»
http://josueortega.org

signature.asc
Description: Digital signature