33 Commits

Author SHA1 Message Date
Dan Streetman
52739e44ad test: simplify test_help with subtests
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Dan Streetman
12c2e6bf42 test: remove unneeded stuff in test/__init__.py
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Stefano Rivera
301569e809 Pull out Python 2 support hacks 2019-09-04 19:24:44 -03:00
Stefano Rivera
a41af75643 Close FDs after tests 2019-09-04 19:24:44 -03:00
Stefano Rivera
2d3765522e Use the Popen() encoding flag to decode to unicode
This should make behavior identical on Python 2 & 3.
2019-09-04 19:24:44 -03:00
Stefano Rivera
5769a70d02 Increase --help timeout, seeing a few of them 2019-09-03 21:16:59 -03:00
Benjamin Drung
cc7170eccb Fix all flake8 issues 2017-05-01 00:20:03 +02:00
Dimitri John Ledkov
ddabeed530 Fix ups 2014-12-18 21:34:13 +00:00
Stefano Rivera
e47a99c42a setup-packaging-environment: Display help 2012-05-06 06:06:41 +02:00
Stefano Rivera
2a2e420353 pbuilder-dist-simple: Display help 2012-05-06 06:03:14 +02:00
Stefano Rivera
ed96c35dc1 grep-merges: Use optparse to display --help 2012-05-06 05:24:14 +02:00
Stefano Rivera
927947841c ubuntu-iso: Use optparse to display --help 2012-05-06 05:18:05 +02:00
Stefano Rivera
d69622fa9c check-symbols: Use optparse to display --help 2012-05-06 05:12:40 +02:00
Stefano Rivera
b26dbaee68 check-mir: Use optparse to display --help 2012-05-05 19:37:41 +02:00
Stefano Rivera
083d44f676 submittodebian: Use optparse to display --help (LP: #988009) 2012-05-05 19:34:02 +02:00
Stefano Rivera
ee62d21ba1 Remove get-bulid-deps from test_help blacklist 2011-09-10 01:39:15 +02:00
Jelmer Vernooij
c55c731237 Update test-help 2011-08-17 14:43:31 +02:00
Evan Broder
d82e65e0e2 * ubuntutools.subprocess:
- New drop-in replacement wrapper module around subprocess that
    backports the restore_signals kwarg and defaults close_fds=True
  - Switch everything previously using subprocess to use
    ubuntutools.subprocess instead (LP: #785854)
2011-05-24 20:22:37 +02:00
Benjamin Drung
7a104714c4 Move add-patch, edit-patch, and what-patch from ubuntu-dev-tools into
devscripts (Closes: #568481).
2011-05-21 17:53:16 +02:00
Stefano Rivera
ebe04d88b0 Exit 0 when showing help, and support -h. 2011-04-24 16:01:42 +02:00
Martin Pitt
45317aa8e0 ubuntutools/test/test_help.py: Blacklist --help test for check-mir, it
does not have help. Fixes FTBFS on the buildd.
2011-01-13 20:14:52 -06:00
Benjamin Drung
fd667bdd5f Fix invalid name pylint report. 2010-12-27 22:46:16 +01:00
Benjamin Drung
2ba510bb89 Fix invalid name pylint report. 2010-12-27 22:33:01 +01:00
Benjamin Drung
c28ddf5698 Wrap all long lines in ubuntutools. 2010-12-23 20:42:21 +01:00
Stefano Rivera
86b7ff977c Add option parsing to massfile, for lpinstance, correct manpage's view on file locations 2010-12-23 12:35:41 +02:00
Stefano Rivera
34b1991bdd Fix pull-revu-source help, and return 0 2010-12-22 17:14:48 +02:00
Stefano Rivera
df6b32086b Close /dev/null 2010-12-22 17:09:29 +02:00
Stefano Rivera
4c0a650052 Blacklist get-build-deps 2010-12-22 17:03:01 +02:00
Stefano Rivera
f55ab3d465 Provide pid when killing 2010-12-22 17:01:55 +02:00
Stefano Rivera
96d72d83e2 signals don't use underscores 2010-12-22 16:57:25 +02:00
Stefano Rivera
c4de897e2a 404main, merge-changelog, pull-debian-debdiff, pull-debian-source:
Return 0 after showing help.
2010-12-22 16:53:58 +02:00
Stefano Rivera
8756577518 Complete blacklist 2010-12-22 16:28:36 +02:00
Stefano Rivera
3ac706401f Test for that every script can run --help and return 0. 2010-12-22 15:05:55 +02:00