Commit Graph

596 Commits

Author SHA1 Message Date
hpk bda58e9862 [svn r38484] make config.option override any conftest provided value.
--HG--
branch : trunk
2007-02-11 18:08:13 +01:00
hpk 50f9f1a410 [svn r38480] unneeded import
--HG--
branch : trunk
2007-02-11 17:56:46 +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 245aa057b4 [svn r38473] rewrote the future section of py test
--HG--
branch : trunk
2007-02-11 17:24:17 +01:00
hpk 5be8668782 [svn r38472] clarifications regarding dist testing
--HG--
branch : trunk
2007-02-11 17:14:40 +01:00
hpk 9b7fa6514b [svn r38470] try to have py.process.cmdexec run on top of PyPy
(with its currentl limitations)

--HG--
branch : trunk
2007-02-11 16:11:49 +01:00
hpk c52a54796d [svn r38467] make string comparison lowercase-insensitive for windows
--HG--
branch : trunk
2007-02-11 15:59:56 +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
hpk 4e66510fa7 [svn r38458] better docstring for top level object
--HG--
branch : trunk
2007-02-11 14:33:22 +01:00
hpk 155886bb54 [svn r38456] konqueror issues
--HG--
branch : trunk
2007-02-11 14:31:24 +01:00
hpk 40c8b10040 [svn r38455] various merging of startup documentation
and rewriting/refactoring information and
references.  clarifying release-structure
a bit.

--HG--
branch : trunk
2007-02-11 14:26:03 +01:00
hpk edfa8f99d5 [svn r38452] bumping version number to 0.9.0-beta
--HG--
branch : trunk
2007-02-11 12:53:42 +01:00
hpk cea9257fbb [svn r38451] a draft release announcement
--HG--
branch : trunk
2007-02-11 12:52:44 +01:00
hpk 609b34d586 [svn r38449] removed DONE issues, added one more (sources page)
and comments.

--HG--
branch : trunk
2007-02-11 12:14:44 +01:00
hpk b7b9ff2b71 [svn r38448] shorter title
--HG--
branch : trunk
2007-02-11 12:05:52 +01:00
hpk e535f80be1 [svn r38447] privatize internal regular expressions
--HG--
branch : trunk
2007-02-11 12:01:27 +01:00
hpk 1c354315a6 [svn r38441] increase hard-coded timeouts a bit (waitclose()
will not neccessarily wait that long, it returns
as soon as the channel is closed so it's not
as bad as outright sleeping)

--HG--
branch : trunk
2007-02-11 09:32:27 +01:00
guido 8a60d6ee5c [svn r38440] Made that the blue links are colored from the stylesheet.
--HG--
branch : trunk
2007-02-11 03:21:45 +01:00
guido a6fd3c241e [svn r38439] Fixed a list of things suggested by hpk: changed method order in class pages,
changed page titles, added links to the api and source index from the nav bar
(also in py/doc html), changed function views, made it possible to remove an
item from the navigation, changed header 'properties' to 'class attributes and
properties', removed duplicate stack traces (in a somewhat unsatisfying way,
needs revisiting later I think).

--HG--
branch : trunk
2007-02-11 03:04:36 +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
hpk 8e33cf6772 [svn r38427] significantly reducing the trailing "Exception in Thread"
messages by having threads die more silently.  Most
of these threads and tracebacks are anyway on some
remote machine, and we need to take care that errors
are routed to the place of invocation (e.g. the
remote_exec() invoker should get remote exceptions,
if the remote thread goes out of scope, the resulting
exception will not be seen likely, anyway)

--HG--
branch : trunk
2007-02-10 23:16:47 +01:00
fijal 7dd0491764 [svn r38422] Argh. Forgotten to check that in
--HG--
branch : trunk
2007-02-10 22:56:23 +01:00
hpk c311d2bc0a [svn r38408] my current list of things (not totally sorted in prio order)
that i'd like for 0.9

--HG--
branch : trunk
2007-02-10 21:29:03 +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
guido 275673ba21 [svn r38396] Capturing stdout and stderr when running the update_website tests to not mess
up --rest output.

--HG--
branch : trunk
2007-02-10 16:41:31 +01:00
guido d3cd1c5bcf [svn r38393] Made (displayed) paths to source files relative whenever possible.
--HG--
branch : trunk
2007-02-10 16:19:17 +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
guido f88bbf1b83 [svn r38388] Removed stuff that's done, added a couple more items to do.
--HG--
branch : trunk
2007-02-10 15:22:16 +01:00
guido ada3a4cfcf [svn r38386] Fixed some more nasty problems after running py.test --apigen on pypy: problem
recognizing """foo "bar" baz""" as a single line string (hack unfortunately),
unicode problems. Also added some code to debug the tokenizer: you can now run
the color.py script with a Python file as arg to tokenize the file.

--HG--
branch : trunk
2007-02-10 15:20:21 +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
guido 663447a7d1 [svn r38370] Hrmph, probably the nastiest case of 'debug print' I ran into so far, bringing
apigen almost to a crawl... Also small optimization making that 'normal'
multi-line strings are resolved before those using \.

--HG--
branch : trunk
2007-02-10 13:02:06 +01:00
guido 4d4ce90f73 [svn r38362] Fixed stupidity in the last checkin: only matching multi-line strings using
slashes if the slash is actually at the end of the line... :(

--HG--
branch : trunk
2007-02-10 12:06:58 +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
hpk e57df20f4b [svn r38315] fixing failing apigen test and adding
a string equality assertion helper
(if we need to have such exact string-comparison tests,
then let's at least make it convenient
to discover the problem quickly)

--HG--
branch : trunk
2007-02-09 21:36:20 +01:00
hpk 248a8d944f [svn r38310] assertion to be sure about keywords
--HG--
branch : trunk
2007-02-09 20:45:04 +01:00
fijal 0d6d17dc96 [svn r38302] Kill _dist_import_pypy
--HG--
branch : trunk
2007-02-09 19:33:00 +01:00
guido 30608ea412 [svn r38262] Fixed support for tokenizing multi-line strings that use \ to span lines.
--HG--
branch : trunk
2007-02-09 16:13:30 +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
guido 73281adc5a [svn r38246] Fixed problems with line height in sources, added missing commas to seperate
base classes, added all Python (2.5) keywords.

--HG--
branch : trunk
2007-02-09 14:01:08 +01:00
guido d2f11081cb [svn r38221] Reverting previous changes after a discussion with hpk.
--HG--
branch : trunk
2007-02-09 00:43:27 +01:00
hpk 4815c6de21 [svn r38220] moved -f and --exec in the documentation as well
--HG--
branch : trunk
2007-02-09 00:41:59 +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
guido c1216c2346 [svn r38217] Moved the -S option to a new conftest.py in the execnet dir to avoid nasty
option re-definition problems.

--HG--
branch : trunk
2007-02-09 00:21:38 +01:00
guido 0bd286ba94 [svn r38216] Adjusting the conftest-for-socketgateway example so it takes care of the -S
option (like the default one does), this caused some test failure.

--HG--
branch : trunk
2007-02-08 23:50:00 +01:00
guido 9a0fa93ce6 [svn r38215] Gotta love the XHTML validity checks... ;)
--HG--
branch : trunk
2007-02-08 23:47:28 +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
guido 999da7a376 [svn r38213] Some small cleanups, made fonts a bit smaller and more consistent.
--HG--
branch : trunk
2007-02-08 23:19:10 +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 dcf4e564ad [svn r38208] make test safer against race conditiation (dist testing)
--HG--
branch : trunk
2007-02-08 21:56:12 +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 499d60c8ab [svn r38203] rename getpymodule/getpycodeobj to "_" methods
(which can build C modules on the fly)
it's not clear they are still useful this way
and they are easy to confuse with pyimport()

--HG--
branch : trunk
2007-02-08 20:48:31 +01:00
hpk 0a79e56b40 [svn r38201] fixing the windows conftest example to work with
the new rsync interface

--HG--
branch : trunk
2007-02-08 20:23:06 +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 1c1df46a55 [svn r38183] Made that py.execnet.Channel (referring to py.__.execnet.channel.Channel) is
picked up by the apigen doc generator, fixed some bugs that made that that
didn't work previously.

--HG--
branch : trunk
2007-02-08 18:28:55 +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 1e8845dfa5 [svn r38181] delete is now an option per-host
--HG--
branch : trunk
2007-02-08 18:24:30 +01:00
guido 9b22af1b32 [svn r38179] Allowing to rsync also when tests are failing using a --ignorefail switch, and
added a --help switch that shows a short help message.

--HG--
branch : trunk
2007-02-08 17:28:33 +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 e3dce2c288 [svn r38174] Flag instead of new method and a test.
--HG--
branch : trunk
2007-02-08 17:01:51 +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 120dae7749 [svn r38172] Add a method which sends only if there are available targets
--HG--
branch : trunk
2007-02-08 16:54:53 +01:00
fijal 395d97160c [svn r38165] Update this as well
--HG--
branch : trunk
2007-02-08 16:35:11 +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
guido db4a19f473 [svn r38151] Small change in the text to make it a bit more understandable.
--HG--
branch : trunk
2007-02-08 16:14:52 +01:00
guido f8e50aabad [svn r38150] Fixed test that failed after the last change in apigen (removing the stacks
from the callable info boxes).

--HG--
branch : trunk
2007-02-08 16:14:21 +01:00
guido fff15f50f3 [svn r38148] Made that stacks are built on seperate pages instead of inline in the function
information, to avoid having > 5MB pages...

--HG--
branch : trunk
2007-02-08 15:52:49 +01:00
guido 46f8c56c9b [svn r38144] Fixed a problem with the linker which on building api/source docs found matches
in its own source code, moved some elements in the apigen docs out of a header
where they shouldn't have been (making the font too large).

--HG--
branch : trunk
2007-02-08 14:54:38 +01:00
guido 9643b7d6f8 [svn r38143] Removed some confusing output to stdout/stderr (output of failing tests, which
are part of a test that tests whether a set of tests ran by a nested py.test
process fails... so the failing output is correct).

--HG--
branch : trunk
2007-02-08 14:51:38 +01:00
guido 5ea9a43dce [svn r38142] Fixed problem with indentation in the results of a doctest.
--HG--
branch : trunk
2007-02-08 14:47:23 +01:00
guido fd0cbdb95a [svn r38140] Empty literal blocks are not allowed: removing them.
--HG--
branch : trunk
2007-02-08 13:26:02 +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
hpk 356b831208 [svn r38123] skip path.txt svn tests if not run via --checkremote
--HG--
branch : trunk
2007-02-07 22:32:30 +01:00
hpk 7213771cc9 [svn r38122] fix parsing of extra lines (to be executed)
--HG--
branch : trunk
2007-02-07 22:31:13 +01:00
fijal 461c0b6a54 [svn r38121] Same issue. Race conditions in file write. Probably we should not use
the same file output for multiple tests (or to put data directory outside
pylib itself).

--HG--
branch : trunk
2007-02-07 21:56:51 +01:00
fijal e5091b7e9d [svn r38120] Make sure that those test run on same machine when run.
(This is broader issue - we probably need to do some exclusive
lock on files given to process_rest_file and such)

--HG--
branch : trunk
2007-02-07 21:53:57 +01:00
hpk 6477b43d9b [svn r38119] avoid clashing the sample* prefix which is used by a listdir() test
--HG--
branch : trunk
2007-02-07 21:52:09 +01:00
hpk 1390114d82 [svn r38118] there is no gurantee anymore that tests run in order
--HG--
branch : trunk
2007-02-07 21:48:49 +01:00
fijal 1a33d1eae6 [svn r38117] call "python py.test" instead of "py.test" (does not rely on +x flag)
--HG--
branch : trunk
2007-02-07 21:41:55 +01:00
hpk 3049c6bd2a [svn r38116] fixing svn tests for -d runs (which usually
is a dependency problem)

--HG--
branch : trunk
2007-02-07 21:40:37 +01:00
fijal 60455ead56 [svn r38115] Call python directly
--HG--
branch : trunk
2007-02-07 21:40:09 +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 028ffa53b2 [svn r38111] remove test order dependency
--HG--
branch : trunk
2007-02-07 20:52:14 +01:00
hpk 07db3fd2cc [svn r38110] i don't think one needs to use svnwc's anymore,
at least it works for me, i think.

--HG--
branch : trunk
2007-02-07 20:41:50 +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
hpk d614e67fb1 [svn r38108] skip this test if we have no .svn dir
--HG--
branch : trunk
2007-02-07 20:28:29 +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
hpk 47aea3ca7b [svn r38104] fixing this so "py.test -s" passes on this as well
--HG--
branch : trunk
2007-02-07 20:04:35 +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 d11aec0b42 [svn r38077] Script to run "py.test --apigen" on the py lib (well, can be used on other
projects too) and rsync the results to some remote host/path (by default
codespeak.net, currently to some dir in my home directory, when it's tested
better in practice files will go to the website directory).

--HG--
branch : trunk
2007-02-07 16:36:02 +01:00
guido 5c7fb384bc [svn r38076] Typo.
--HG--
branch : trunk
2007-02-07 16:34:01 +01:00
guido d0861a546f [svn r38075] Adding some print.
--HG--
branch : trunk
2007-02-07 16:33:46 +01:00
hpk 0fb86b2b90 [svn r38074] fix typo
--HG--
branch : trunk
2007-02-07 16:26:27 +01:00
guido 1b43f3c324 [svn r38070] Removed broken anchor from link.
--HG--
branch : trunk
2007-02-07 16:24:11 +01:00
guido b8307eeccc [svn r38068] Grmbl, the failing svn tests turned out to be my fault: copy/paste bug. (when
copying the comment, I must have copied along some lines of code... ):

--HG--
branch : trunk
2007-02-07 16:15:01 +01:00
fijal 4fae2f581d [svn r38051] Fix an option -s contradics -d
--HG--
branch : trunk
2007-02-07 12:34:08 +01:00
guido 318a1c2333 [svn r38044] Now just writing dots when running tests, decreased font size a little of the
class docstring and link.

--HG--
branch : trunk
2007-02-07 02:01:25 +01:00
guido 8ab4468b5c [svn r38043] Changed the way the lazy linking is handled: instead of building the pages
and replacing the links all in memory, pages are now written to disk with
temporary hrefs, which are replaced afterwards.

--HG--
branch : trunk
2007-02-07 01:24:21 +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
guido 12b991723e [svn r38036] Some small code cleanups (moved more HTML generation code to html.py).
--HG--
branch : trunk
2007-02-06 22:18:56 +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 4369d430c8 [svn r38028] make rsync configurable regarding its output
(verbose option and overridable method)

--HG--
branch : trunk
2007-02-06 20:32:21 +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
guido 3690e384a9 [svn r38005] Made that source snippets are now shown in two tables, to allow selecting
the source without the line numbers, decreased font size a bit, made that the
Page class can be passed in from the outside (build() method) to more easily
allow customization of the layout and pages.

--HG--
branch : trunk
2007-02-06 14:19: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
cfbolz 157a77ef0a [svn r37992] have real definitions (yes, the empty lines make a difference). rest is strange.
--HG--
branch : trunk
2007-02-06 00:56:14 +01:00
cfbolz d45b45a74e [svn r37991] remove colons and change the subsecion title
--HG--
branch : trunk
2007-02-06 00:53:46 +01:00
fijal eb01cfa78e [svn r37990] Fix reporting (and a test for that)
--HG--
branch : trunk
2007-02-06 00:53:29 +01:00
cfbolz 9b6787782d [svn r37989] add an overview over py.tests command-line options
--HG--
branch : trunk
2007-02-06 00:50:11 +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
cfbolz a430e2b8f5 [svn r37987] split the py.test docs into implementation and customization docs and normal
user docs.

--HG--
branch : trunk
2007-02-06 00:18:22 +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
guido 102409a846 [svn r37984] Moved all the apigen information into one document and adjusted to match the
current situation.

--HG--
branch : trunk
2007-02-05 23:37:23 +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 845357dcba [svn r37960] refactored the tests and added tests and code
for disallowing to send() twice without
adding new targets.

--HG--
branch : trunk
2007-02-05 13:55:31 +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 03dc73b195 [svn r37949] fix test for nocapturing output runs (and --pdb)
--HG--
branch : trunk
2007-02-05 01:47:43 +01:00
hpk 99661844dd [svn r37948] fix for win32
--HG--
branch : trunk
2007-02-05 01:36:00 +01:00
hpk bdf3e919c9 [svn r37947] added _gethomedir() helper to get at homedirectory
--HG--
branch : trunk
2007-02-05 01:35:40 +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
guido 0292420920 [svn r37931] Made that the __init__ method is the first method displayed.
--HG--
branch : trunk
2007-02-04 22:49:44 +01:00
guido 27e05e257a [svn r37930] Docstrings.
--HG--
branch : trunk
2007-02-04 22:47:03 +01:00
guido 7034b507a3 [svn r37928] Updated test (oops).
--HG--
branch : trunk
2007-02-04 22:21:35 +01:00
guido a78ad64f9d [svn r37927] Some docstrings.
--HG--
branch : trunk
2007-02-04 22:11:56 +01:00
guido a1c7ab69f9 [svn r37926] Small visual tweaks.
--HG--
branch : trunk
2007-02-04 22:11:43 +01:00
guido 16f9103a0a [svn r37922] Made that properties (class attributes) are displayed, fixed the links in the
menubar.

--HG--
branch : trunk
2007-02-04 16:47:33 +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 a7de613ed0 [svn r37916] dist_rsync_roots: py lib itself only needs itself
--HG--
branch : trunk
2007-02-04 15:42:50 +01:00
hpk beb3a12700 [svn r37915] sanity checks
--HG--
branch : trunk
2007-02-04 15:40:46 +01:00
hpk e4f5a2259c [svn r37914] cleaner test setup
--HG--
branch : trunk
2007-02-04 15:36:42 +01:00
guido 98b4dcf155 [svn r37913] Some more cleanups in HTML generation, fixed support for docstrings in
namespaces, in order to do this I had to change the way objects are retrieved:
instead of getting them from the DSA I now walk the package tree, small change
in apigen.py: to allow re-using the get_documentable_items function I split it
up in a generic and a specific part.

--HG--
branch : trunk
2007-02-04 15:35:28 +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
arigo 04cf3cdfa0 [svn r37901] make_numbered_dir(): in a fork() situation, only the last process should remove
the .lock, otherwise the other processes run the risk of seeing their temporary
dir disappear.  For now we remove the .lock in the parent only (i.e. we assume
that the children finish before the parent).

This is needed for long-running pypy translate.py processes using
--fork-before.

--HG--
branch : trunk
2007-02-04 14:01:21 +01:00
arigo f13381e3f9 [svn r37899] Try to print the exception before dying.
--HG--
branch : trunk
2007-02-04 13:31:24 +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
hpk 9f8035656e [svn r37872] StdCaptureFD and StdCapture now try
to take care of stdin in a mostly uniform way.

--HG--
branch : trunk
2007-02-03 14:57:25 +01:00
hpk d6d7eb8704 [svn r37866] small cleanup of ground std* descriptors.
--HG--
branch : trunk
2007-02-03 13:31:47 +01:00
fijal f5d51fb9e0 [svn r37865] more descriptive skip msg
--HG--
branch : trunk
2007-02-03 13:27:48 +01:00
fijal 4db6f4144a [svn r37864] Add a (failing) test about version URL available
--HG--
branch : trunk
2007-02-03 13:25:20 +01:00
fijal 0eb8d103b1 [svn r37863] Ooops, didn't meant to check that in.
--HG--
branch : trunk
2007-02-03 13:15:23 +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
fijal 2fe1fa07ff [svn r37861] Skip compat
--HG--
branch : trunk
2007-02-03 13:13:18 +01:00
hpk 1ab92ac3be [svn r37859] separating tests into two files
--HG--
branch : trunk
2007-02-03 12:32:45 +01:00
hpk 90188b1256 [svn r37855] a first rough list for py.test namespace cleanup
--HG--
branch : trunk
2007-02-03 12:18:25 +01:00
fijal 4ffda926ab [svn r37850] Split methods a bit to smaller parts.
--HG--
branch : trunk
2007-02-03 11:26:23 +01:00
fijal 026c2fa0bc [svn r37838] Privatize attributes of rsync.py
--HG--
branch : trunk
2007-02-03 00:32:35 +01:00
guido 66cf52a6e2 [svn r37837] A bit of cleanup of the HTML generation: some of the layout related stuff is
moved to the classes in the H namespace. This hopefully (when done, more can
definitely be done later) seperates the HTML generation better from the
presentation-related code.

--HG--
branch : trunk
2007-02-03 00:29:01 +01:00
hpk 923c65f13e [svn r37835] some updates to TODO items
--HG--
branch : trunk
2007-02-03 00:10:38 +01:00
hpk 04c3bcd074 [svn r37834] reworked execnet intro to more explicitely state
the main (high-level) features.

--HG--
branch : trunk
2007-02-03 00:09:29 +01:00
guido c4a94921c6 [svn r37833] Oops, was using py.path.local('.') instead of py.magic.autopath().dirpath()
to find the scripts to copy...

--HG--
branch : trunk
2007-02-02 22:47:21 +01:00
hpk 8c2ef5cb22 [svn r37831] improving more docstrings
--HG--
branch : trunk
2007-02-02 22:01:27 +01:00
hpk 2c0e4bc798 [svn r37830] better RSync docstring
--HG--
branch : trunk
2007-02-02 21:57:59 +01:00
hpk e0a1612d51 [svn r37824] fix typo
--HG--
branch : trunk
2007-02-02 20:59:10 +01:00
hpk 59264d57ae [svn r37822] added lots of docstrings, general cleanup
--HG--
branch : trunk
2007-02-02 20:57:47 +01:00
hpk 0600b1aa36 [svn r37815] path.txt: showing a bit more for string methods
update TODO

--HG--
branch : trunk
2007-02-02 19:27:22 +01:00
guido 37a4bfd5ad [svn r37812] Using style.css from the doc directory for apigen now, with some overrides in
a seperate stylesheet. Cleaned up the stylesheet and script handling a bit:
stylesheets and scripts are now defined in the LayoutPage class (where they're
easily customizable). Also removed some old unused code and moved the H class
(html related) stuff to its own file. The idea is that this will become the
place where all the layout is defined.

--HG--
branch : trunk
2007-02-02 16:49:58 +01:00
hpk 24539c3797 [svn r37790] fix Ssh remote sanitzing of FD 1 and 0 and factor
out the code in a function

--HG--
branch : trunk
2007-02-02 02:44:31 +01:00
hpk 084460ffd4 [svn r37789] small updates and streamlining of docs
--HG--
branch : trunk
2007-02-02 02:22:43 +01:00
hpk 443a0b4614 [svn r37788] guido, unless i am missing something there seem to be two
problems with your making Channel's public: you didn't import
it (py.__.* is not lazy) and it fails the apigen tests even
after fixing it.

--HG--
branch : trunk
2007-02-02 02:18:06 +01:00
hpk 272812fd76 [svn r37787] more precision at shutdown: first remove
from the sendqueue, then trigger the queue
to shutdown. (This is an attempt to get
rid of the still appearing "exception in thread"
messages)

--HG--
branch : trunk
2007-02-02 02:07:37 +01:00
hpk 0c55062e74 [svn r37786] improve docstring
--HG--
branch : trunk
2007-02-02 02:05:31 +01:00
hpk 7a718ca2e7 [svn r37785] privatizing some more attributes
--HG--
branch : trunk
2007-02-02 02:02:55 +01:00
hpk b4919c8102 [svn r37784] privatizing some attributes
--HG--
branch : trunk
2007-02-02 01:34:40 +01:00
hpk c6c9fd326c [svn r37783] puh, it took me quite a while to find out why
ssh-stdout-confusion tests involving "os.write(1, ...)"
were passing on earlier revisions: in 35888
a test name got fixed, but when you specify "-S somehost"
then this will hang, so i am skipping the test for
now, this never worked.

--HG--
branch : trunk
2007-02-02 01:32:24 +01:00
guido b8bb733778 [svn r37782] Changed the checking in resolve_linkrole() so that instead of the apigen
results (the directory with HTML files) it uses the py lib object tree and
source tree to find out whether links are valid.

--HG--
branch : trunk
2007-02-02 01:00:50 +01:00
guido 5bf17c3b62 [svn r37781] Added 'execnet.channel.Channel' object to the to-be-documented items.
--HG--
branch : trunk
2007-02-02 00:58:57 +01:00
hpk 3634701598 [svn r37780] simplifying code a bit (but test_confusion* for Ssh still fails)
--HG--
branch : trunk
2007-02-02 00:57:55 +01:00
fijal cf7e2d7c28 [svn r37779] Fix and a test for disappearing files.
--HG--
branch : trunk
2007-02-02 00:40:49 +01:00
guido 23aeccc8c8 [svn r37776] Fixed some problems with the relative link checker (was using the wrong base
path for checks), fixed links in the documents.

--HG--
branch : trunk
2007-02-02 00:12:49 +01:00
guido 80a0045805 [svn r37774] Adding support for checking generated API links (for link roles).
--HG--
branch : trunk
2007-02-01 23:30:51 +01:00
cfbolz df0736db08 [svn r37773] typo
--HG--
branch : trunk
2007-02-01 23:27:51 +01:00
hpk 7fd122a4c1 [svn r37772] have both capturings have the same done/reset semantics
(should also fix a buildcmodule related problem, e.g. for
greenlets)

--HG--
branch : trunk
2007-02-01 22:52:42 +01:00
hpk 31f4c194e8 [svn r37770] remove very old try at doing svn bindings
--HG--
branch : trunk
2007-02-01 22:18:40 +01:00
hpk e5d7fcd0d8 [svn r37769] minor clarifi
--HG--
branch : trunk
2007-02-01 22:16:10 +01:00
guido 024608bdcd [svn r37767] Fixed Windows issues in doctests.
--HG--
branch : trunk
2007-02-01 21:28:21 +01:00
hpk 17754c6fd9 [svn r37766] unifying non-FD and FD capturing some more
(could be more, but at least the APIs start
to feel the same)

--HG--
branch : trunk
2007-02-01 21:26:27 +01:00
guido 9ddca27edc [svn r37765] Was still getting filenames for source files from code objects, so adding more
defensiveness, and made that the 'capture' object is passed over to the builder
instances (to help debugging, currently not used).

--HG--
branch : trunk
2007-02-01 21:10:48 +01:00
guido a2359e0554 [svn r37752] Added some more code examples.
--HG--
branch : trunk
2007-02-01 16:58:42 +01:00
hpk f21df1b455 [svn r37751] fix two other places that used capturing
(although the greenlet fix is not really
related, but i first saw it now on win32)

--HG--
branch : trunk
2007-02-01 16:58:10 +01:00
hpk 3ad6642a49 [svn r37745] fixing and adding to docstring
--HG--
branch : trunk
2007-02-01 16:35:29 +01:00
hpk c413f11daf [svn r37743] ah, there was yet another version of capturing hiding
--HG--
branch : trunk
2007-02-01 16:23:51 +01:00
hpk df8ff8144c [svn r37742] fix reference
--HG--
branch : trunk
2007-02-01 16:23:27 +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 d9572239a8 [svn r37739] Made that only the first two lines of a source file are examined for the
encoding.

--HG--
branch : trunk
2007-02-01 15:57:34 +01:00
guido ec734026cc [svn r37738] Fixed problem probably caused by removing some comment or something...
--HG--
branch : trunk
2007-02-01 15:55:23 +01:00
hpk 16fae5ed73 [svn r37736] cosmetic docstring change
--HG--
branch : trunk
2007-02-01 15:35:07 +01:00
guido 646d4f93e1 [svn r37733] Removed two rather useless methods that just delegated to methods on the
underlying object, in favour of calling the underlying object's methods
directly (py.io.OutErrCapture.writeorg*).

--HG--
branch : trunk
2007-02-01 15:13:59 +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 661d984aec [svn r37703] adding references to path and code documentation
--HG--
branch : trunk
2007-01-31 23:56:18 +01:00