hpk
9eb1d55380
[svn r57762] * settle on using suptest for supporting test runs
...
* fix a bug in getmodpath
* remove redundant functions/files
--HG--
branch : trunk
2008-09-02 16:31:42 +02:00
hpk
7518dcabc2
[svn r57758] unify test support, remove basetest.py
...
--HG--
branch : trunk
2008-09-02 15:22:10 +02:00
hpk
561a14054c
[svn r57754] * introduce py.test.collect.File (File for py or non-py files)
...
* introduce py.test.collect.Collector.collect_by_name and
special case it for Directories to allow specifying
files that would otherwise be ignored because of filters.
* fix py/doc/conftest to work with new API
* refactor py/doc/test_conftest.py to use suptest helper
* avoid old APIs in some more places.
--HG--
branch : trunk
2008-09-02 14:24:15 +02:00
hpk
494ea31042
[svn r57744] Merging collection-API refactoring branch:
...
* collectors now have a collect() method
* items have a runtest() method
* deprecated old run/join of collectors and
run/execute methods of items
--HG--
branch : trunk
2008-09-02 10:58:14 +02:00
fijal
937b13c710
[svn r57609] Keep comments in the same style accross the file
...
--HG--
branch : trunk
2008-08-24 12:58:42 +02:00
hpk
861ff88484
[svn r57595] i've heart somewhere that running tests before checking in is a good idea (aka bah!)
...
--HG--
branch : trunk
2008-08-22 23:15:56 +02:00
hpk
354feff9a6
[svn r57594] * adding tracing to dsession and master/slave communication
...
(enable with --tracedir)
* factor slave loop into a class
* add comment to pickling
--HG--
branch : trunk
2008-08-22 23:14:43 +02:00
hpk
a6f1e3d82f
[svn r57591] flush true by default
...
--HG--
branch : trunk
2008-08-22 19:07:04 +02:00
hpk
7adfbfa166
[svn r57565] also introduce config.maketrace(name, flush=False) which
...
returns either a nulltracer or opens a log in the tracedir
and returns an object that you can call with args to print
into the file.
--HG--
branch : trunk
2008-08-21 19:39:34 +02:00
hpk
bf42c88e48
[svn r57564] adding an option for setting a tracedirectory so that components can write log files,
...
depending on what they get from config.gettracedir()
--HG--
branch : trunk
2008-08-21 19:25:48 +02:00
hpk
89cdf3b8a4
[svn r57558] should have come with 57557 - extend "acceptance" test machinery.
...
--HG--
branch : trunk
2008-08-21 16:26:27 +02:00
hpk
29af0e2d81
[svn r57556] remove special Function __repr__
...
--HG--
branch : trunk
2008-08-21 15:53:19 +02:00
hpk
d7f4dd3794
[svn r57548] * introduce py.process.ForkedFunc object (previously lived at
...
py.io and before that py.test)
* avoid deprecated py/misc/terminal_helper.py
* starting changelog for 1.0
--HG--
branch : trunk
2008-08-21 14:12:20 +02:00
hpk
39c06d2f6e
[svn r57455] fixing for changed output
...
--HG--
branch : trunk
2008-08-19 07:58:44 +02:00
hpk
a20731b111
[svn r57440] various fixes for python2.6
...
--HG--
branch : trunk
2008-08-18 19:33:31 +02:00
hpk
abc8cf09aa
[svn r57321] merging the event branch:
...
* moving in test, misc, code, io directories and
py/__init__.py
* py/bin/_find.py does not print to stderr anymore
* a few fixes to conftest files in other dirs
some more fixes and adjustments pending
--HG--
branch : trunk
2008-08-16 17:26:59 +02:00
hpk
7428eadf7d
[svn r57320] remove test, misc, doc, io, and code directories
...
that are to come from the event branch with the next commit.
--HG--
branch : trunk
2008-08-16 17:10:17 +02:00
hpk
d4c3b3ce85
[svn r56285] sanitize doctesting a bit. this also fixes the problem that you could not have "import" working in doctests previously. thanks nshepperd.
...
--HG--
branch : trunk
2008-07-04 09:14:36 +02:00
hpk
cb53ad6010
[svn r56284] removing unadvertised new names and adjusting the test
...
to show how you can put custom messages otherwise.
--HG--
branch : trunk
2008-07-04 08:51:51 +02:00
hpk
671f6a4660
[svn r55053] also allow using pdb in failures of the collection process
...
--HG--
branch : trunk
2008-05-21 11:54:33 +02:00
fijal
4fce886def
[svn r54623] A test for 54622
...
Fix for running tests
--HG--
branch : trunk
2008-05-10 15:55:22 +02:00
fijal
6e99225320
[svn r54622] "How this could ever worked..."
...
--HG--
branch : trunk
2008-05-10 15:39:39 +02:00
fijal
a700c261ef
[svn r52707] Allow some mocking.
...
--HG--
branch : trunk
2008-03-18 21:57:43 +01:00
hpk
f3f84fa36c
[svn r51329] rename special __package__ to __pkg__ because python 2.6 needs the former
...
(thanks to Ralf Schmitt)
--HG--
branch : trunk
2008-02-08 09:43:05 +01:00
fijal
37d357ff4c
[svn r51292] Just another except, in order to represent source when it's not there.
...
--HG--
branch : trunk
2008-02-05 15:35:49 +01:00
hpk
6db9a3bd2e
[svn r51087] add a note that skip-reporting is broken
...
after the branch-merge
--HG--
branch : trunk
2008-01-27 22:33:30 +01:00
hpk
f2b0bd10e6
[svn r51034] merging in fijal's reporter-merge branch into the trunk,
...
still needs refactoring as far as i am concernced.
--HG--
branch : trunk
2008-01-25 16:54:04 +01:00
hpk
192a890435
[svn r51033] merging of svn+ssh://codespeak.net/svn/py/branch/reporter-merge/py/test/session.py
...
revisions 47584 to 51032:
------------------------------------------------------------------------
r51030 | hpk | 2008-01-25 14:30:54 +0100 (Fri, 25 Jan 2008) | 5 lines
fixing test and restoring the functionality
that session.main returns a list of failures
(py.test --exec=python should work again)
------------------------------------------------------------------------
r50984 | hpk | 2008-01-24 18:27:06 +0100 (Thu, 24 Jan 2008) | 1 line
avoid reporting hooks on session object
------------------------------------------------------------------------
r49391 | fijal | 2007-12-05 17:33:05 +0100 (Wed, 05 Dec 2007) | 2 lines
Don't cache results.
------------------------------------------------------------------------
r48698 | fijal | 2007-11-15 01:31:42 +0100 (Thu, 15 Nov 2007) | 2 lines
Uh. 2.4 compatibility
------------------------------------------------------------------------
r48318 | fijal | 2007-11-05 16:47:34 +0100 (Mon, 05 Nov 2007) | 3 lines
Seems that --pdb don't need to imply -s and worked out of the box.
I've got no idea how to test it though :-/
------------------------------------------------------------------------
r48140 | fijal | 2007-10-28 19:43:21 +0100 (Sun, 28 Oct 2007) | 2 lines
Reintroduce boxing
------------------------------------------------------------------------
r48138 | fijal | 2007-10-28 19:22:42 +0100 (Sun, 28 Oct 2007) | 2 lines
Share more code.
------------------------------------------------------------------------
r48130 | fijal | 2007-10-28 14:58:42 +0100 (Sun, 28 Oct 2007) | 2 lines
Add --collectonly handling, new style, logic separated
------------------------------------------------------------------------
r48129 | fijal | 2007-10-28 14:41:06 +0100 (Sun, 28 Oct 2007) | 2 lines
Refactor LocalReporter not to rely on hosts being there
------------------------------------------------------------------------
r48128 | fijal | 2007-10-28 14:24:41 +0100 (Sun, 28 Oct 2007) | 2 lines
Small regactoring for simple usage of default reporter class
------------------------------------------------------------------------
r48127 | fijal | 2007-10-28 12:56:41 +0100 (Sun, 28 Oct 2007) | 2 lines
Remove terminal session as it's no longer needed
------------------------------------------------------------------------
r48126 | fijal | 2007-10-28 12:48:35 +0100 (Sun, 28 Oct 2007) | 2 lines
Some real test for itemgen
------------------------------------------------------------------------
r47678 | fijal | 2007-10-21 18:43:54 +0200 (Sun, 21 Oct 2007) | 2 lines
Make even less things working.
------------------------------------------------------------------------
r47667 | fijal | 2007-10-21 13:00:20 +0200 (Sun, 21 Oct 2007) | 4 lines
Huge refactoring, the target is unification of session reporters and
eventually sessions. Right now there is about 200 lines of code cut,
but there is still some code to die and also some features missing :)
------------------------------------------------------------------------
r47660 | fijal | 2007-10-21 00:02:04 +0200 (Sun, 21 Oct 2007) | 2 lines
Create a new branch for reporter merge
------------------------------------------------------------------------
--HG--
branch : trunk
2008-01-25 16:51:46 +01:00
arigo
c5f6b437c8
[svn r49974] Restore the following behavior: py.test exits with an exit code 1
...
when there are failures.
--HG--
branch : trunk
2007-12-21 10:55:40 +01:00
fijal
b97ff86b0f
[svn r47584] Implement very sophisticated algorith for -k TestClass.test to work
...
--HG--
branch : trunk
2007-10-19 15:46:10 +02:00
fijal
aabae96514
[svn r47277] Argh. Fix -d -x
...
--HG--
branch : trunk
2007-10-08 10:19:55 +02:00
cfbolz
1e67da155a
[svn r46794] embarassing typo
...
--HG--
branch : trunk
2007-09-21 15:29:26 +02:00
cfbolz
d61ed8c014
[svn r46772] add a custom pdb.Pdb subclass that has the ability to properly list the lines
...
generated by py.code.Source. Very useful in PyPy debugging.
--HG--
branch : trunk
2007-09-20 17:26:09 +02:00
cfbolz
66f7db5894
[svn r46770] add py.builtin.GeneratorExit, to make it possible to write 2.3 and 2.4
...
compatible code. The exception is never raised there.
--HG--
branch : trunk
2007-09-20 17:17:22 +02:00
fijal
28c5aae67d
[svn r46011] Branch merge of session cleanups.
...
* killed _tryiter usage in rsession
* moved reporter one level up, so it can be reused later for normal session
* a lot of small simplifications
--HG--
branch : trunk
2007-08-27 11:02:50 +02:00
fijal
ea8038db10
[svn r45907] Fix number
...
--HG--
branch : trunk
2007-08-22 14:43:50 +02:00
fijal
a18a291dee
[svn r45655] Kill unnecessary sanity check
...
--HG--
branch : trunk
2007-08-14 17:21:02 +02:00
fijal
773848823d
[svn r45648] Add possibility to specify reason for skips
...
--HG--
branch : trunk
2007-08-14 11:48:15 +02:00
fijal
a7a95973eb
[svn r45647] use repr() rather than direct return
...
--HG--
branch : trunk
2007-08-14 11:47:27 +02:00
fijal
5318f7b145
[svn r45646] Rewrite it a bit not to rely on exact formatting (rather checking whether
...
information is there)
--HG--
branch : trunk
2007-08-14 11:45:04 +02:00
fijal
506bd239bd
[svn r45545] Kill lock.
...
--HG--
branch : trunk
2007-08-08 11:36:08 +02:00
fijal
f78a355042
[svn r45518] Print out communicate atomically
...
--HG--
branch : trunk
2007-08-06 15:57:55 +02:00
fijal
8cbb41521c
[svn r45295] Fix rsession tests
...
--HG--
branch : trunk
2007-07-24 11:32:44 +02:00
pedronis
856c7e5695
[svn r44655] be consistent in super usage
...
--HG--
branch : trunk
2007-07-01 15:44:40 +02:00
pedronis
6ec2be9985
[svn r44648] PyCollectorMixin is intented to override Collector behavior, if we want to use super it really
...
needs to subclass from it to get mros to that effect.
If the obscure semi-override was intentional (?) holler
--HG--
branch : trunk
2007-07-01 14:18:02 +02:00
fijal
29e19de6a4
[svn r43575] Whack CSS a bit to have dots which does not go under the navbar
...
--HG--
branch : trunk
2007-05-23 17:03:46 +02:00
xoraxax
8f733a426f
[svn r42215] Copy with SVN history and restore test.
...
--HG--
branch : trunk
2007-04-20 18:40:39 +02:00
xoraxax
2dd380575c
[svn r42188] Revive test/compat.py again, seems to work fine for me. Can be used by patching sys.modules["unittest"] in the conftest.py file.
...
--HG--
branch : trunk
2007-04-20 00:39:27 +02:00
fijal
50d77c64c0
[svn r41860] * kill start_on
...
* add keyword_oneshot flag, which indicates that -k is only one shot
than all tests are run
* simplify code a bit
--HG--
branch : trunk
2007-04-03 19:28:04 +02:00
fijal
d8e5e63235
[svn r41855] Add a bit hackish option which allows to start from selected
...
keyword test, doesn't work with rsession yet.
--HG--
branch : trunk
2007-04-03 17:23:00 +02:00
arigo
a86118d77b
[svn r41480] Move the FunctionMixin to collect.py, as an attempt to avoid circular
...
imports.
--HG--
branch : trunk
2007-03-27 15:28:18 +02:00
guido
417d97c850
[svn r41080] Added support for filtering listdir() calls in the SourcePageBuilder, using it
...
to filter out hidden files and the 'build' subdir of greenlet.
--HG--
branch : trunk
2007-03-22 16:06:41 +01:00
fijal
633a3a67a3
[svn r40943] Regenerate js
...
--HG--
branch : trunk
2007-03-21 15:49:49 +01:00
fijal
c2d010ad92
[svn r40753] Make MAX_COUNTER small enough. It's an obscure hack, but at least works
...
--HG--
branch : trunk
2007-03-19 11:43:49 +01:00
fijal
ae3e6b9bf0
[svn r40739] Make FAILED TO LOAD MODULE clickable
...
--HG--
branch : trunk
2007-03-18 23:53:14 +01:00
fijal
f6980c4b9d
[svn r40738] Count also FAILED TO LOAD MODULE failures in web interface
...
--HG--
branch : trunk
2007-03-18 23:44:54 +01:00
fijal
3943673739
[svn r40737] A fix that allows (for command line reporter) to report failure in case
...
when FAILED TO LOAD MODULE
--HG--
branch : trunk
2007-03-18 23:38:57 +01:00
arigo
5506b03f81
[svn r40702] (pedronis, arigo)
...
Add setup/teardown calls around generators, with the same semantics as
around functions and methods.
--HG--
branch : trunk
2007-03-18 16:59:45 +01:00
fijal
34a4991edd
[svn r39995] Possibly controversial checkin.
...
Kill a hack for explicit isinstance(). We've got just two methods,
so doing full getmro doesn't seem to make too much sense.
Anyway this changes semantics slightly, so now we rely on exact
inheritance rather than name (I don't have good answer for those)
--HG--
branch : trunk
2007-03-06 19:06:37 +01:00
fijal
2cd886f442
[svn r39340] A fix and a test. Thanks Marian Shubert for reporting problem
...
--HG--
branch : trunk
2007-02-23 15:22:50 +01:00
hpk
f12b95ff5a
[svn r38760] fix ehem syntax ehem error
...
--HG--
branch : trunk
2007-02-13 21:40:29 +01:00
hpk
a3dd6dfd7c
[svn r38755] fix reporting of duplicate remote host rsyncs
...
and adding an XXX test (not easy to test ssh hosts
because it modifies remote state)
--HG--
branch : trunk
2007-02-13 21:09:25 +01:00
fijal
87aabe079e
[svn r38749] Regenerated js
...
--HG--
branch : trunk
2007-02-13 20:30:19 +01:00
hpk
3ab95e5672
[svn r38747] hum, a last-minute namespace change: i missed
...
that fijal didn't move py.test.Item|Function to the py.test.collect namespace
at the time. a pypy fix will follow shortly after i merged the dist.
--HG--
branch : trunk
2007-02-13 20:21:53 +01:00
fijal
614675743d
[svn r38726] shuffle -> sample
...
--HG--
branch : trunk
2007-02-13 17:37:26 +01:00
fijal
97a82f2df2
[svn r38713] Use self.source wherever applicable
...
--HG--
branch : trunk
2007-02-13 16:34:16 +01:00
fijal
de57df5134
[svn r38712] Avoid py.test.config._reparse([])
...
--HG--
branch : trunk
2007-02-13 16:32:49 +01:00
fijal
a38f606825
[svn r38711] Avoid infinte recursion when rsyncing (well finite - OSError file too long)
...
--HG--
branch : trunk
2007-02-13 16:31:31 +01:00
fijal
44337db211
[svn r38710] Invoke the skip rather than have it
...
--HG--
branch : trunk
2007-02-13 16:24:33 +01:00
fijal
f149de635c
[svn r38709] kill dead code
...
--HG--
branch : trunk
2007-02-13 16:24:08 +01:00
fijal
db6df474fe
[svn r38708] document.location is not in DOM. We need to implemented some stuff in
...
js backend to be able to test this
--HG--
branch : trunk
2007-02-13 16:15:26 +01:00
hpk
a992ca7427
[svn r38706] privatizing config.conftest to config._conftest as well
...
--HG--
branch : trunk
2007-02-13 16:05:21 +01:00
fijal
53c204962a
[svn r38577] Test for explicit Failed
...
--HG--
branch : trunk
2007-02-12 16:40:04 +01:00
fijal
ba07ab5533
[svn r38576] typo!
...
--HG--
branch : trunk
2007-02-12 16:30:32 +01:00
fijal
de078273a0
[svn r38574] Special case outcome.Failed - reuse that excinfo
...
--HG--
branch : trunk
2007-02-12 16:28:28 +01:00
fijal
6210030d27
[svn r38573] This tests was completely broken when pypy is there
...
--HG--
branch : trunk
2007-02-12 16:28:09 +01:00
fijal
cb87cd42cc
[svn r38572] Move a bit into using high-level traceback interface instead of low-level one
...
--HG--
branch : trunk
2007-02-12 16:27:46 +01:00
hpk
a43ff3108f
[svn r38568] improving r38560 a bit
...
--HG--
branch : trunk
2007-02-12 15:58:14 +01:00
fijal
6294a4b189
[svn r38560] Compare collectors by id rather than by name. It needs to be rethought
...
a bit.
--HG--
branch : trunk
2007-02-12 14:20:49 +01:00
fijal
d01fb4a18e
[svn r38559] Give info about tests in case of failure/interruption
...
--HG--
branch : trunk
2007-02-12 14:14:36 +01:00
hpk
d1008d3752
[svn r38549] also privatizing Config.initdirect (which relates to remote reprs and such)
...
--HG--
branch : trunk
2007-02-12 13:21:16 +01:00
hpk
5d36fbf365
[svn r38548] carefully privatizing Config.make_repr and Config.merge_repr
...
by doing a whole-pylib replace and reviewing the diff in detail
--HG--
branch : trunk
2007-02-12 13:18:23 +01:00
hpk
00c7ccfaa0
[svn r38508] skip signal detection tests for python < 2.4
...
(2.4 and 2.5 work apparently)
--HG--
branch : trunk
2007-02-11 19:56:08 +01:00
hpk
ff9df3c079
[svn r38506] config.getvalue_pathlist should also honour option values
...
(to be uniform with getvalue semantics)
--HG--
branch : trunk
2007-02-11 19:47:04 +01:00
hpk
7973f472d7
[svn r38505] clarify that config.getvalue will first lookup
...
in options.
--HG--
branch : trunk
2007-02-11 19:43:34 +01:00
hpk
14ad83da06
[svn r38496] don't print the test-mode, that needs more thought how
...
to do it now
--HG--
branch : trunk
2007-02-11 19:01:19 +01:00
hpk
bda58e9862
[svn r38484] make config.option override any conftest provided value.
...
--HG--
branch : trunk
2007-02-11 18:08:13 +01:00
hpk
5c000e57f1
[svn r38474] make io capturing configurable per e.g.
...
conf_iocapture = "sys"
by default it has "fd" for performing fd-based capturing
--HG--
branch : trunk
2007-02-11 17:25:01 +01:00
hpk
22d98ac3a1
[svn r38460] removing a very-likely-obsolete test
...
and otherwise fixing files and tests
to do py.test.skip()s only during setup.
--HG--
branch : trunk
2007-02-11 14:46:46 +01:00
hpk
e068a463a1
[svn r38459] two functions with the same name, use the latter one.
...
--HG--
branch : trunk
2007-02-11 14:45:49 +01:00
guido
ac5c05b688
[svn r38438] Rolling back r38422 and part of r38397 because it made that a lot of stuff was
...
printed to stdout/err.
--HG--
branch : trunk
2007-02-11 02:54:22 +01:00
fijal
7dd0491764
[svn r38422] Argh. Forgotten to check that in
...
--HG--
branch : trunk
2007-02-10 22:56:23 +01:00
hpk
1095cec0dc
[svn r38398] for setup/teardown pairs the correct idiom is
...
setup()
try:
...
finally:
teardown()
and not to do the setup() within the try,
because if that raises, teardown() will
likely go wrong as well etc.
--HG--
branch : trunk
2007-02-10 18:00:58 +01:00
fijal
1739ba4f55
[svn r38397] Kill PidInfo and make boxing optional for distributed testing.
...
This should make dist testing on windows possible.
--HG--
branch : trunk
2007-02-10 17:50:47 +01:00
hpk
e280dfe1f0
[svn r38392] looponfailing tricked me into committing too early
...
(syntax error, bah)
--HG--
branch : trunk
2007-02-10 16:07:30 +01:00
hpk
bc009c4aef
[svn r38391] check more exactly if we are working
...
from a default rsync_root (checking
for rsync_root == topdir is not safe
as the topdir may be explicitely contained
in the rsync_root list)
--HG--
branch : trunk
2007-02-10 16:05:32 +01:00
hpk
d3e2c68e03
[svn r38390] refining the logic: for inplace-localhosts ("optimized localhost")
...
we do not add any relative path.
--HG--
branch : trunk
2007-02-10 15:51:25 +01:00
hpk
fa94900836
[svn r38389] completing the picture: now if you don't have rsync_roots
...
specified, the config.topdir is transfered but it is
transferred to the "remotepath.join(topdir.basename)"
(not actual code) to avoid random such rsyncs to
destroy/affect remote filesystem state.
--HG--
branch : trunk
2007-02-10 15:45:41 +01:00
hpk
e11e7472bc
[svn r38378] snapshot commit for: each rsync root is now copied to
...
remote-topdir.join(root.basename)
--HG--
branch : trunk
2007-02-10 14:21:26 +01:00
hpk
e04e08718f
[svn r38352] made localhost inplace handling safer (and more
...
redundant, there is an additional flag now,
and host.gw_remotepath is None for localhost-inplace
hosts)
--HG--
branch : trunk
2007-02-10 09:52:22 +01:00
fijal
0d6d17dc96
[svn r38302] Kill _dist_import_pypy
...
--HG--
branch : trunk
2007-02-09 19:33:00 +01:00
fijal
aa4896fa04
[svn r38249] It seems that there was somehow different idea in mind, but I actually
...
do not get it.
Right now there is no way to override default session other than
from py.__.test import config; config.TerminalSession = 'name_to_import'
which is scary. Holger please take a look.
--HG--
branch : trunk
2007-02-09 14:24:08 +01:00
hpk
828ef252d0
[svn r38219] looponfailing and exec are not so experimental
...
--HG--
branch : trunk
2007-02-09 00:38:07 +01:00
hpk
b175e90f26
[svn r38218] i give up for now, somehow the local change
...
in the FileBox affects --dist testing in ways i
can't fully understand at the moment (i would
think it only affects --boxed test runs). So
we are back to share tempdirs when running boxed
(causing failures elswhere). We care later, i guess.
--HG--
branch : trunk
2007-02-09 00:25:32 +01:00
hpk
07310d0799
[svn r38214] be a bit nicer: don't pollute /tmp with a new tempdir
...
for each boxed test run. Also fix the counting
of boxes (how did it ever work like this, anyway)
--HG--
branch : trunk
2007-02-08 23:24:44 +01:00
hpk
0f37c632ac
[svn r38212] have each boxed test run use its own tempdir
...
--HG--
branch : trunk
2007-02-08 23:13:59 +01:00
hpk
ab6dded07a
[svn r38207] revert 38182 and 38184 changes to ensuretemp()
...
because getpid() is different per thread
(and if e.g. run via execnet in threads ...
it creates new tempdirectories all the time)
let's consider this sometime else
--HG--
branch : trunk
2007-02-08 21:31:50 +01:00
hpk
3ea6a768e0
[svn r38198] almost cosmetic
...
--HG--
branch : trunk
2007-02-08 20:15:05 +01:00
hpk
479aa2e03f
[svn r38197] slight reporting fix
...
--HG--
branch : trunk
2007-02-08 20:10:58 +01:00
hpk
4976889c53
[svn r38196] reducing the callback-indirections for rsyncing
...
and improving the reporting for localhosts non-rsyncs
--HG--
branch : trunk
2007-02-08 20:02:28 +01:00
hpk
6e293f593a
[svn r38192] streamlining localhost optimization handling,
...
and simplifying the test a bit.
--HG--
branch : trunk
2007-02-08 19:35:18 +01:00
hpk
411157756b
[svn r38184] avoid globals and add a comment
...
--HG--
branch : trunk
2007-02-08 18:39:03 +01:00
guido
e89d5e5880
[svn r38182] Made that ensuretemp() creates a new dir after forks.
...
--HG--
branch : trunk
2007-02-08 18:25:32 +01:00
hpk
7fccd77b8a
[svn r38176] make delete a per-host option (internally it is anyway)
...
--HG--
branch : trunk
2007-02-08 17:04:58 +01:00
fijal
c18ab8fd7e
[svn r38175] Fix
...
--HG--
branch : trunk
2007-02-08 17:02:15 +01:00
fijal
27cf3997e3
[svn r38173] * Minor semantics change, now host and host: are the same (we don't
...
want to rsync to home dir usually)
* Make a flag rsync_flag in hostinfo which tells whether to rsync
or no, semantics are that in case of localhost we do not rsync
and in case of localhost: we do.
--HG--
branch : trunk
2007-02-08 16:56:33 +01:00
fijal
0e8510648f
[svn r38164] Move source as an rsync initialisation argument rather than
...
as a send parameter
--HG--
branch : trunk
2007-02-08 16:31:38 +01:00
hpk
938680d50f
[svn r38125] run unboxed by default, split/improve tests for it
...
--HG--
branch : trunk
2007-02-07 22:56:14 +01:00
fijal
ee04997eb2
[svn r38124] No, this is needed for C-c to work.
...
--HG--
branch : trunk
2007-02-07 22:35:14 +01:00
fijal
cbfca77f39
[svn r38114] Kill fatals()
...
to be considered in future
--HG--
branch : trunk
2007-02-07 21:14:06 +01:00
fijal
1e6016ccc2
[svn r38113] Make fatal() attribute which makes boxed tests catch SystemExit, while
...
in-process let it slide.
--HG--
branch : trunk
2007-02-07 21:04:01 +01:00
fijal
632cc727e4
[svn r38112] This time don't catch SystemExit. Increases stability
...
--HG--
branch : trunk
2007-02-07 20:53:03 +01:00
hpk
f07e482ddb
[svn r38109] bailing out the optimize_localhost approach
...
to consider it differently
--HG--
branch : trunk
2007-02-07 20:36:41 +01:00
fijal
1d6a72d936
[svn r38107] * Have optimise_localhost flag and a test for it (but not turning it on
...
by default, this will be done later)
* two other occurences of possibly-failing channel.send
--HG--
branch : trunk
2007-02-07 20:24:38 +01:00
hpk
d791086561
[svn r38106] making tests independent of --dist implications
...
--HG--
branch : trunk
2007-02-07 20:16:28 +01:00
fijal
8258b40fd6
[svn r38105] Make errors bright red and bold, easier to spot.
...
--HG--
branch : trunk
2007-02-07 20:14:10 +01:00
fijal
5b188f1167
[svn r38103] Hum. This test was just broken. Fix it and add additional checks.
...
--HG--
branch : trunk
2007-02-07 20:02:21 +01:00
fijal
c5df4c335c
[svn r38102] Skip this test not to interfere with py.test.config.boxed
...
--HG--
branch : trunk
2007-02-07 19:56:48 +01:00
fijal
3bb0c2b433
[svn r38101] oops, this will be implied anyway
...
--HG--
branch : trunk
2007-02-07 19:56:10 +01:00
fijal
d7331146da
[svn r38100] Slave is always boxed as well (different level of skips)
...
--HG--
branch : trunk
2007-02-07 19:55:39 +01:00
fijal
ee1214fcfe
[svn r38099] * RSession cannot work with nocapture, LSession can
...
* RSession is always boxed
--HG--
branch : trunk
2007-02-07 19:54:51 +01:00
fijal
ecd605e3b2
[svn r38098] A test and typo discovered by that test.
...
--HG--
branch : trunk
2007-02-07 19:44:49 +01:00
hpk
77b8a010c5
[svn r38097] streamline boxed test configuration:
...
"config.option.boxed" indicates now boxed tests
and RSession.fixoptions takes care to honour
dist_boxed accordingly. So you can do
if not py.test.config.boxed:
py.test.skip(...)
i also fixed the documentation.
--HG--
branch : trunk
2007-02-07 19:43:23 +01:00
fijal
ae9ffd2c19
[svn r38096] typo
...
--HG--
branch : trunk
2007-02-07 19:40:16 +01:00
fijal
6e58395de0
[svn r38095] getremoteerror does not raise!
...
--HG--
branch : trunk
2007-02-07 19:36:53 +01:00
fijal
337eea81cb
[svn r38091] Increase verbosity in case of error. The thing is that we usually don't get
...
remote error, so let's print it.
--HG--
branch : trunk
2007-02-07 19:25:01 +01:00
hpk
07ee2bc39e
[svn r38083] saner tempdir using
...
--HG--
branch : trunk
2007-02-07 18:58:47 +01:00
fijal
40eb468c71
[svn r38082] Fix reporting (and a test for that)
...
--HG--
branch : trunk
2007-02-07 17:49:14 +01:00
guido
eeedfd2d8f
[svn r38079] Typo in some help string, and made fonts of apigen a bit smaller somewhere.
...
--HG--
branch : trunk
2007-02-07 17:03:19 +01:00
hpk
0b7854d722
[svn r38078] some fixes and test skips for win32 (otherwise all tests
...
pass for me on win32)
--HG--
branch : trunk
2007-02-07 16:54:50 +01:00
guido
d0861a546f
[svn r38075] Adding some print.
...
--HG--
branch : trunk
2007-02-07 16:33:46 +01:00
fijal
4fae2f581d
[svn r38051] Fix an option -s contradics -d
...
--HG--
branch : trunk
2007-02-07 12:34:08 +01:00
fijal
b91e13d5df
[svn r38040] My favorite lazy-lexical-scope-binding error. Still thinking how to make test
...
for that. Basically - callbacks with lexical scope variables are usually
(depends of coz) called with variables after the for loop has finished.
--HG--
branch : trunk
2007-02-07 00:13:50 +01:00
fijal
3fa9cbe98d
[svn r38039] Fix a test
...
--HG--
branch : trunk
2007-02-07 00:00:24 +01:00
hpk
89a14afcbe
[svn r38038] more precise rsyncing
...
--HG--
branch : trunk
2007-02-06 22:41:11 +01:00
hpk
c888d05772
[svn r38037] not showing rsync-items by default, shows that
...
something is odd regarding the messages, i think
(read the diff, it's a simple change, i guess
we actually want to generate an Event also for
the web reporter at some point, i think,
but we could live with this for the merge IMO)
--HG--
branch : trunk
2007-02-06 22:22:50 +01:00
hpk
563ed75651
[svn r38035] be more precise when reporting about hosts
...
(enumerate them)
--HG--
branch : trunk
2007-02-06 22:12:36 +01:00
hpk
1d4a46d46a
[svn r38034] i think the rsync roots should be shown absolute
...
--HG--
branch : trunk
2007-02-06 21:47:21 +01:00
fijal
ce498a1504
[svn r38033] Fix tests once again
...
--HG--
branch : trunk
2007-02-06 21:36:03 +01:00
hpk
50c6e97e1c
[svn r38032] simplified testing machinery a bit
...
(you know just have to add an example
and can immediately use it from tests
without adding boilerplate anywhere)
--HG--
branch : trunk
2007-02-06 21:28:07 +01:00
fijal
b7b83bf007
[svn r38031] refactor rest of tests
...
--HG--
branch : trunk
2007-02-06 21:21:09 +01:00
fijal
439b0c2378
[svn r38030] Refactor this test to use new testing service
...
--HG--
branch : trunk
2007-02-06 21:13:57 +01:00
fijal
8fd09aac24
[svn r38029] Move funcxxxspec out of pylib itself.
...
--HG--
branch : trunk
2007-02-06 21:05:55 +01:00
hpk
ef43218016
[svn r38027] more precise reporting to the user
...
--HG--
branch : trunk
2007-02-06 20:15:33 +01:00
fijal
63bbe18a7e
[svn r38025] Fix a bit web reporter (still not perfect)
...
--HG--
branch : trunk
2007-02-06 20:11:12 +01:00
hpk
1945487f4a
[svn r38024] avoid that hostmanage.py tests interfere
...
with the real world (through writing or creating
pytestcache-XXX files), semantic change: upon
gateway initialization the remote path is not
automatically created (this will be done later
by rsync anyway)
--HG--
branch : trunk
2007-02-06 20:06:57 +01:00
fijal
138b0ec79a
[svn r38023] Report HostRSyncing only in case where rsyncing is really performed.
...
--HG--
branch : trunk
2007-02-06 20:01:07 +01:00
fijal
540736b493
[svn r38022] be a bit more verbose before rsync.
...
--HG--
branch : trunk
2007-02-06 19:57:14 +01:00
fijal
f69c77a7ab
[svn r38021] Simple refactoring to be a bit more verbose when starting.
...
--HG--
branch : trunk
2007-02-06 19:44:16 +01:00
fijal
410e00320d
[svn r38000] Fix web reporter
...
--HG--
branch : trunk
2007-02-06 12:15:06 +01:00
fijal
fef23c34cd
[svn r37994] Imrpovement of host rsync reporting. Additionally it increased stability for no particular reason
...
--HG--
branch : trunk
2007-02-06 11:31:08 +01:00
fijal
eb01cfa78e
[svn r37990] Fix reporting (and a test for that)
...
--HG--
branch : trunk
2007-02-06 00:53:29 +01:00
hpk
7bc4b6a80e
[svn r37988] adding a bit to the test (but the code is already correct)
...
--HG--
branch : trunk
2007-02-06 00:21:33 +01:00
fijal
cc0dfc1c3c
[svn r37986] Add a repr if we have str
...
Add delete keyword to parent
--HG--
branch : trunk
2007-02-06 00:09:05 +01:00
hpk
4af00f6682
[svn r37985] make sure that host.initgateway() will always
...
have the other side chdir()ed to home,
thus generalizing 37971 with respect to platform
support and making it independent from gateway
implementation details.
--HG--
branch : trunk
2007-02-05 23:46:31 +01:00
fijal
1c287a2546
[svn r37971] This was there for a reason that we don't want to have different pylib loaded (there was even test for that, apparently killed)
...
--HG--
branch : trunk
2007-02-05 16:11:05 +01:00
hpk
11591c3c4f
[svn r37950] * add and document dist_rsync_ignore option to ignore
...
files and directories for rsyncing
--HG--
branch : trunk
2007-02-05 02:14:17 +01:00
hpk
99661844dd
[svn r37948] fix for win32
...
--HG--
branch : trunk
2007-02-05 01:36:00 +01:00
hpk
0b9b0909bf
[svn r37946] setup/teardown hosts correspond
...
--HG--
branch : trunk
2007-02-05 01:23:14 +01:00
hpk
c93cfc1e2b
[svn r37945] make the hostmanager get at the hosts itself
...
(or you can pass it in a custom list of hosts)
--HG--
branch : trunk
2007-02-05 01:14:11 +01:00
hpk
b68bc5b373
[svn r37938] rename report.py to repevent.py (report events)
...
also to ease the completion ambiguity a bit
(and to avoid having to read "reporter" and "report"
next to each other)
--HG--
branch : trunk
2007-02-05 00:34:23 +01:00
hpk
fb2613135b
[svn r37936] minor cleanups
...
--HG--
branch : trunk
2007-02-05 00:21:35 +01:00
hpk
e8bdb867fa
[svn r37935] remove done_dict and according experimental
...
code for re-scheduling (i guess)
fijal: in the diff you'll find a XXX fijal,
i changed the meaning of a test, wasn't sure
about it. can you check?
--HG--
branch : trunk
2007-02-05 00:12:12 +01:00
hpk
a128ecb8cf
[svn r37919] use a less ambigous test package name
...
--HG--
branch : trunk
2007-02-04 16:42:55 +01:00
hpk
e4f5a2259c
[svn r37914] cleaner test setup
...
--HG--
branch : trunk
2007-02-04 15:36:42 +01:00
guido
7852ead1fe
[svn r37912] Made some small changes to the initpkg mechanism so docstrings are, if
...
provided in the exportdefs, copied to the namespaces (from whereever they
come), and added docstrings to all exposed namespaces (except for _thread for
now).
--HG--
branch : trunk
2007-02-04 15:27:10 +01:00
hpk
4791dd6501
[svn r37909] a much much much larger refactoring than i originally
...
intended at this point:
* HostManager and HostRSync are now acting
more locally, also easier to test.
* HostInfo deals with setting up gateways now
* HostManager, HostRSync and HostInfo are
all tested now in test_hostmanage.py
(and do not involve a full startup of RSessions)
* for rsyncing, the original directory structure
(relative to config.topdir) is preserved on the
other side, this makes "dist_rsync_roots" relatively
clean now (but it doesn't pick up things on the fly,
only initialises at the beginning)
* added lots of tests
* removed more occurences of pkgdir
* streamlined and simplified some tests
* removed lots of tests that do not appear to test
specifically enough (and caused trouble for
the refactoring)
* removed lots of (but not all, i guess) test-specific
functionality in hostmanage.py and a bit in rsession.py
* removed HostOptions() in favour of rather directly
accessing config values
--HG--
branch : trunk
2007-02-04 15:05:01 +01:00
hpk
f2b38db33a
[svn r37908] fixing test
...
--HG--
branch : trunk
2007-02-04 14:54:10 +01:00
hpk
41526ad622
[svn r37898] provide a high-level helper for getting
...
at a pathlist specified in a conftest (and
the paths can be relative to the conftest.py file they
are contained in)
--HG--
branch : trunk
2007-02-04 13:29:26 +01:00
hpk
95f38694cb
[svn r37886] hum, i thought i had refactored this option name already ...
...
also the wrong name does not even cause a test failure. odd.
--HG--
branch : trunk
2007-02-03 21:35:14 +01:00
hpk
ee40787bf1
[svn r37885] adding docstrings, stripping non-used names from import
...
--HG--
branch : trunk
2007-02-03 21:33:12 +01:00
fijal
309f3e2cec
[svn r37884] Few missing Skipped
...
--HG--
branch : trunk
2007-02-03 21:15:55 +01:00
fijal
f5308aba2d
[svn r37881] Some other stuff goes private
...
--HG--
branch : trunk
2007-02-03 19:52:21 +01:00
hpk
f9b8a810cd
[svn r37880] removing public API from test.config (only one rather
...
internal usage, anyway)
--HG--
branch : trunk
2007-02-03 19:50:35 +01:00
fijal
e88a6c5fc3
[svn r37879] s/tryiter/_tryiter/
...
--HG--
branch : trunk
2007-02-03 19:44:34 +01:00
fijal
1dca2498fb
[svn r37877] Intermediate checkin for some privatising of attributes
...
--HG--
branch : trunk
2007-02-03 19:29:24 +01:00
fijal
46a91b3705
[svn r37876] s/get_collector_trail/_get_collector_trail/
...
--HG--
branch : trunk
2007-02-03 19:00:04 +01:00
fijal
9b62f2290c
[svn r37862] Move Skipped/Failed/Passed out of public namespace
...
--HG--
branch : trunk
2007-02-03 13:14:46 +01:00
hpk
b706ec2f95
[svn r37741] monster checking for
...
* unifying IO capturing methods
* py.io.StdCapture and py.io.StdCaptureFD
(and both have a classmethod 'call' that is
a shortcut for capturing output while
executing a function)
* removing lots of duplicate code
* providing some examples in py/doc/io.txt
at least tests on win32 and linux seem
to pass all for me.
--HG--
branch : trunk
2007-02-01 16:20:39 +01:00
guido
9f491f2058
[svn r37729] Added some code to py.io.FDCapture and py.io.OutErrCapture to allow writing
...
to the original (patched) file descriptor. Also made that the capturing object
is passed to apigen.py's build() function (from rsession.py), which uses the
new methods to print progress information.
--HG--
branch : trunk
2007-02-01 14:56:31 +01:00
fijal
3f31ed5742
[svn r37723] Add a test
...
--HG--
branch : trunk
2007-02-01 12:59:47 +01:00
fijal
ee72091783
[svn r37721] Fix. !Tests needed!
...
--HG--
branch : trunk
2007-02-01 12:50:29 +01:00
fijal
f4b4f68b40
[svn r37720] Kill dead import
...
--HG--
branch : trunk
2007-02-01 12:28:45 +01:00
hpk
dbb88cdb75
[svn r37698] waiting even a bit longer for loop-on-failing
...
--HG--
branch : trunk
2007-01-31 23:20:33 +01:00
hpk
f915de1992
[svn r37696] removing py.test.compat.TestCase - it's small
...
code but nobody uses it i think and there is
no documentation.
--HG--
branch : trunk
2007-01-31 22:55:30 +01:00
fijal
c432765556
[svn r37631] Kill unnecessarry cache
...
--HG--
branch : trunk
2007-01-30 18:55:08 +01:00
fijal
3630e7fcd3
[svn r37624] Slightly hackish way to put all tracing calls as low as possible. This
...
should kill unnecessary frames. Right now tracing is done only for
py.test.Function objects, I don't know what to do with sth else, let's
leave it alone.
--HG--
branch : trunk
2007-01-30 17:59:32 +01:00
hpk
e96e4f61c7
[svn r37598] removing broken tkinter session support ahead of the
...
0.9 release (might be re-introduced later)
--HG--
branch : trunk
2007-01-30 15:02:28 +01:00
hpk
1f0835df15
[svn r37596] bah, waiting longer also in py-trunk
...
--HG--
branch : trunk
2007-01-30 14:44:52 +01:00
guido
c2e1510f86
[svn r37582] Updated mock-up function return value.
...
--HG--
branch : trunk
2007-01-30 11:45:46 +01:00