David Wilson
b21d51be47
ansible: fix test for 3.x.
2018-07-07 14:55:47 +01:00
David Wilson
04e138e060
core: fix serialization of empty bytes() on 3.x.
2018-07-07 14:55:47 +01:00
David Wilson
b4f4b66679
tests: make cpu_load.py more random.
2018-07-07 14:55:47 +01:00
David Wilson
46ec0ffcaf
tests: log original traceback in assertRaises().
2018-07-07 14:55:47 +01:00
David Wilson
3e48f95439
tests: import cpu_load.py.
2018-07-07 14:55:47 +01:00
David Wilson
7ff9d573b6
tests: remove stray enable_debug()
2018-07-07 14:55:47 +01:00
David Wilson
4ff47d6a93
parent: more 2/3x format fixes
2018-07-07 14:55:47 +01:00
David Wilson
90f2f823db
tests: remove stray hard-coded interpreter.
2018-07-07 14:55:47 +01:00
David Wilson
6b4e047017
tests: 3.x parent_test fixes.
2018-07-07 14:55:47 +01:00
David Wilson
6cbf34d5fe
tests: another smattering of 3.x type/API fixes.
2018-07-07 14:55:47 +01:00
David Wilson
7697861011
tests: skip one test that triggers bug in ancient vendered six.py
2018-07-07 14:55:47 +01:00
David Wilson
c141dd10ec
master: fix resolve_relpath()
...
looks like this was just as broken on 2.x, and suddenly we're
finding a bunch more legit Django deps. It seems anywhere
absolute_import appeared in 2.x, we skipped some imports.
2018-07-07 14:55:47 +01:00
David Wilson
b0404bef40
tests: fix get_module_via_* encoding issues
2018-07-07 14:55:47 +01:00
David Wilson
9903692811
master: update scan_code_imports to cope with wordcode
...
Constant-sized opcodes were introduced as an optimization in Python 3.6.
See https://bugs.python.org/issue26647
2018-07-07 14:55:47 +01:00
David Wilson
826c477061
tests: built-in exceptions live in a different module in 3.x
2018-07-07 14:55:47 +01:00
David Wilson
cbcd8267d1
tests: must decode() zlib result for 3.x.
2018-07-07 14:55:47 +01:00
David Wilson
ec176bf1f8
tests: unittest2 import behaviour appears to differ between 2/3.
...
In 2 the module is loaded as __main__
In 3 it has its actual name.
2018-07-07 14:55:47 +01:00
David Wilson
410016ff47
Initial Python 3.x port work.
...
* ansible: use unicode_literals everywhere since it only needs to be
compatible back to 2.6.
* compat/collections.py: delete this entirely and rip out the parts of
functools that require it.
* Introduce serializable Kwargs dict subclass that translates keys to
Unicode on instantiation.
* enable_debug_logging() must set _v/_vv globals.
* cStringIO does not exist in 3.x.
* Treat IOLogger and LogForwarder input as latin-1.
* Avoid ResourceWarnings in first stage by explicitly closing fps.
* Fix preamble_size.py syntax errors.
2018-07-07 14:55:47 +01:00
David Wilson
4f57c59b7e
issue #275 : Don't run virtualnv test on 2.6.
2018-06-25 01:36:48 +01:00
David Wilson
cec564654e
issue #275 : tests: fix module_finder_test for 2.6.
2018-06-25 01:36:41 +01:00
David Wilson
4be8afa3d3
issue #275 : tests: fix test_simple for 2.6.
2018-06-25 01:36:39 +01:00
David Wilson
7b84a2c2e4
issue #275 : tests: use same EC0_MARKER as parent.py
2018-06-25 01:36:36 +01:00
David Wilson
6e0883f369
issue #275 : tests: fix bug in 2.6 compat check_output(), ignore it for >2.6.
2018-06-25 01:36:33 +01:00
David Wilson
3b1cc3676c
issue #275 : ssh_debug_level=3 for tests
2018-06-25 01:36:04 +01:00
David Wilson
6d618593f3
issue #275 : Python 2.6 reports linux as 'linux3'.
2018-06-25 01:35:49 +01:00
David Wilson
1d04a99adb
issue #275 : missing check_output() call
2018-06-25 01:35:36 +01:00
David Wilson
38d69a6ecd
issue #275 : tests: drop docker client dep, doesn't run on 2.6.
2018-06-24 21:12:34 +01:00
David Wilson
b38318dfec
issue #275 : build for centos 6 too (python2.6)
2018-06-24 21:12:34 +01:00
dw
27ab051289
Merge pull request #282 from dw/issue278
...
Issue278
2018-06-23 17:20:35 +01:00
David Wilson
6d14652077
issue #278 : tests: fix fakessh.
...
See source comment. This behaviour always existed, but it now seems to
be triggered since we started draining the master side input buffer,
which someone was prolonging the life of the PTY.
2018-06-23 16:17:24 +00:00
Alex Willmer
21199f290e
Fix bash loop when add users to docker images
2018-06-18 19:44:37 +01:00
David Wilson
9617f4d7bf
Revert "try to catch EINTR on travis"
...
This reverts commit 42797d5cff
.
2018-06-10 15:28:33 +01:00
David Wilson
fbb67e837e
tests: import nice_stdout plugin
2018-06-10 15:03:34 +01:00
David Wilson
42797d5cff
try to catch EINTR on travis
2018-06-10 13:40:58 +01:00
David Wilson
ffc7306cf8
tests: better runner_two_simultaneous_jobs.yml.
2018-06-10 05:00:42 +00:00
David Wilson
1d96d80e8d
tests: osx_setup.yml missing line
2018-06-10 04:50:58 +00:00
David Wilson
3994f1b30a
ansible: implment async job time limit.
2018-06-10 02:28:49 +01:00
David Wilson
df8fe59eda
tests: replace hard-coded sleep with a polling loop
2018-06-10 01:00:12 +01:00
David Wilson
64b60be50c
tests: split runner_new_process out of runner_one_job
2018-06-09 19:51:44 +01:00
David Wilson
f7d2eace08
tests: importer fixes
2018-05-29 14:07:13 +01:00
David Wilson
cee76ee7b9
tests: gcloud setup fixes.
2018-05-29 00:45:21 +01:00
David Wilson
3b0addcfb0
service: v2. Closes #213
2018-05-28 05:38:33 +01:00
David Wilson
633585524f
tests: don't need separate module for id_allocation_test any more
...
This used to be because everything would explode while importing
__main__ under py.test, but that was fixed months ago.
2018-05-28 04:58:45 +01:00
David Wilson
ddf28987a0
master: split Select() into new module to reduce wire size.
...
service.py currently imports master.py(+parent.py) just to get Select().
2018-05-24 23:59:10 +01:00
David Wilson
b0ce6eecd7
fork: support on_start= argument.
2018-05-23 16:25:17 +01:00
David Wilson
00edf0d66d
core: have ExternalContext accept a config dict rather than kwargs.
...
The parameter lists had gotten out of control.
2018-05-23 16:24:38 +01:00
David Wilson
eac4cc7afe
tests: speed things up
2018-05-18 10:58:25 +01:00
David Wilson
b0aa413173
tests: import benchmark reproduction setup playbook
...
Incomplete, also needs to mess around with Gcloud routing and handle box
setup/teardown, because that's another "well engineered" waste of time.
2018-05-18 10:58:25 +01:00
David Wilson
a99c7a12f9
tests: output split groups in gcloud.py
2018-05-15 23:41:02 +00:00
David Wilson
dbcee4041a
tests: refactor gcloud.py to be dynamic inventory.
2018-05-15 22:10:36 +01:00