103 Commits

Author SHA1 Message Date
Dimitri John Ledkov
99eb51b4e1 Fix test_config to skip Unicode environment variable test, when python
interpreter is not running in an unicode capable locale.
2015-01-19 15:21:00 +00:00
Dimitri John Ledkov
8ae64c16e2 Disable test_dsc_badsig, when no networking is available. 2014-12-18 23:35:00 +00:00
Dimitri John Ledkov
866adfd768 Actually, now that more things expect streaming bytes over the wire
the mirror tests don't stall anymore. Also use a codec.reader to slurp
up unicode bytes for json.load.
2014-12-18 23:18:00 +00:00
Dimitri John Ledkov
5da114b070 More consistent binary handling throughout.
Don't mock open(..., "b") with str / StringIO.
Silence source package pull, buffered/mocked output does not flush.
Disable mirror tests on python3, stall/hang.
2014-12-18 23:03:23 +00:00
Dimitri John Ledkov
412afabc1c Fix maintainer 2014-12-18 21:54:52 +00:00
Dimitri John Ledkov
1bab644191 Conf fixes 2014-12-18 21:53:00 +00:00
Dimitri John Ledkov
ddabeed530 Fix ups 2014-12-18 21:34:13 +00:00
Dimitri John Ledkov
d86cacddf9 finish no-regress pre-port. 2014-12-18 21:18:01 +00:00
Dimitri John Ledkov
b8cf7b113e logger 2014-12-18 21:11:00 +00:00
Dimitri John Ledkov
dae4c18c9e update_maintainer 2014-12-18 21:09:44 +00:00
Dimitri John Ledkov
a7f4fc202b fix test_config 2014-12-18 21:06:44 +00:00
Dimitri John Ledkov
8b5db046be t/t_config 2014-12-18 21:03:27 +00:00
Dimitri John Ledkov
d4f6ef320e remains of mox 2014-12-16 01:44:13 +00:00
Dimitri John Ledkov
88e3d1d6ba Port http_mock to mock. 2014-12-15 04:24:41 +00:00
Dimitri John Ledkov
522030be12 don't keep unused mocks 2014-12-15 03:47:59 +00:00
Dimitri John Ledkov
72487d0477 Stubout 2014-12-15 03:42:49 +00:00
Dimitri John Ledkov
7d70b6b3a3 Dropping mox 2014-12-15 03:25:41 +00:00
Stefano Rivera
e21f15865c * Thanks for the NMU, Paul.
* Non-maintainer upload.
* Change debian.tar.gz to debian.tar.xz (Closes: #738413)
2014-02-25 22:46:10 +02:00
Loïc Minier
658946c214 Encode the developer name in the current locale to run the test; thanks
Stefano Rivera.
2013-05-15 02:18:50 +02:00
Loïc Minier
0aaa0f1f4a Decode name from environment or from gecos with the locale's encoding and add
corresponding regression test; fixes handling of non-ascii developer name like
mine with e.g. syncpackage using it with dpkg-genchanges -e.
2013-05-13 13:58:15 +02:00
Benjamin Drung
c2aa97dba2 Move devscripts.logger to ubuntutools.logger. 2013-03-19 00:18:02 +01: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
52fc42ca8f Make ubuntutools.archive a little more testable, by making its urlopener an
instance property.

Replace these with mocks, as needed, rather than mocking out urllib2.urlopen.

Makes the test suite pass again.
2012-03-26 10:00:46 +02:00
Stefano Rivera
70a035f13d Use httplib2 everywhere that we do https. The python stdlib doesn't do
certificate verification.
2011-11-22 15:57:02 +02:00
Stefano Rivera
ee62d21ba1 Remove get-bulid-deps from test_help blacklist 2011-09-10 01:39:15 +02:00
Stefano Rivera
6e719c751d Remove unecessary MultipleTimes() 2011-09-04 22:48:45 +02:00
Stefano Rivera
17b287e7bf ubuntutools.archive: Don't write .dsc files until we pull the entire
source package, just hold it in memory. Avoids littering the current
directory (LP: #838361)
2011-09-04 19:01:01 +02:00
Jelmer Vernooij
b696cade13 merge trunk. 2011-09-01 19:39:20 +02:00
Benjamin Drung
ce2f96bc0d Make pylint happier and code more PEP-8 compliant. 2011-08-20 11:31:02 +02:00
Jelmer Vernooij
c55c731237 Update test-help 2011-08-17 14:43:31 +02:00
Stefano Rivera
abfdd76f01 ubuntutools.test.test_archive: Forgive newer python-debian's for calling
GpgInfo.from_sequence() with the optional keyrings arguments.
2011-08-16 11:19:15 +02:00
Benjamin Drung
a03fa654f3 Move debian-distro-info, distro-info, and ubuntu-distro-info from
ubuntu-dev-tools into distro-info.
2011-06-25 17:53:44 +02:00
Benjamin Drung
ebbaada218 Add experimental to list of Debian distributions. 2011-06-25 16:20:22 +02:00
Evan Broder
19c33e5e32 * 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-06-24 16:32:07 +02:00
Evan Broder
5c96b78d72 Reimplement ubuntutools.subprocess.Popen as a class instead of a factory function. 2011-06-19 14:20:47 -07:00
Benjamin Drung
de32133e75 distro_info.py: Add validity check method. 2011-06-15 00:01:49 +02:00
Stefano Rivera
6aee8410eb Work around pylint bug: http://www.logilab.org/ticket/46273 2011-05-30 15:55:15 +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
aa96842c84 Remove trailing spaces. 2011-05-23 23:44:45 +02:00
Benjamin Drung
e8b3a18c45 Move suspicious-source and wrap-and-sort from ubuntu-dev-tools into devscripts. 2011-05-23 23:41:00 +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
Benjamin Drung
2d74893dd2 Add testcase for bug #701487. 2011-04-17 16:30:09 +02:00
Benjamin Drung
56b5ee1703 Make distro-info tests scricter. 2011-03-08 18:55:36 +01:00