Commit Graph

202 Commits

Author SHA1 Message Date
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
guido bef3ad84ce [svn r37579] Made that the package name can be set when using from_dict() to fill a
DocStorage.

--HG--
branch : trunk
2007-01-30 11:34:08 +01:00
fijal acfbbcb7ff [svn r37533] Make distribution working with custom conftests at exact levels. This
is very explicit - dist_rsyncroots works only in that conftest directory.

--HG--
branch : trunk
2007-01-29 14:06:19 +01:00
guido e921ad8af9 [svn r37531] Removing try/except to make debugging a little bit easier.
--HG--
branch : trunk
2007-01-29 13:53:52 +01:00
hpk ad127323e3 [svn r37502] unify dist_* options and give dist_rsync_roots more precision:
you now specify relative paths (relative to the conftest.py
where a dist_rsync_root setting resides) or absolute paths.

--HG--
branch : trunk
2007-01-28 22:54:12 +01:00
hpk 216919d612 [svn r37501] rename for clarity
--HG--
branch : trunk
2007-01-28 21:37:30 +01:00
hpk 20222ec57b [svn r37500] postponing generalizing of host specifications for 0.9
--HG--
branch : trunk
2007-01-28 21:25:48 +01:00
hpk ae11e91791 [svn r37499] concreter error message
--HG--
branch : trunk
2007-01-28 21:25:11 +01:00
hpk df3448c6f9 [svn r37494] the start of factoring out common and unified
host handling within py.test

--HG--
branch : trunk
2007-01-28 18:53:43 +01:00
hpk 1d3519bfe0 [svn r37465] * all Sessions now have fixoptions()
* added some tests for implied and conflicting options
* make all Session objects inherit from the base session
* small cleanups with respect to test setup
* separate tests a bit

--HG--
branch : trunk
2007-01-28 14:25:03 +01:00
hpk de9fd5ecef [svn r37462] allow the remote side to run in verbose mode
--HG--
branch : trunk
2007-01-28 12:00:17 +01:00
hpk a938384607 [svn r37460] these tests rely on exact formatting, so skipping them again
(fail for me on pypy2)

--HG--
branch : trunk
2007-01-28 11:32:01 +01:00
hpk 9e7886c59b [svn r37457] explicitely shutdown the gateway for the remote session
after each run.

--HG--
branch : trunk
2007-01-28 09:49:28 +01:00
hpk 181f6cde23 [svn r37447] config._reparse() from current dir can drag in conftest.py
files (happened to me because i had two py lib checkouts)

--HG--
branch : trunk
2007-01-27 20:24:41 +01:00
hpk 3d70646122 [svn r37443] slightly re-organizing RemoteTerminalSession for
easier subclassing.

--HG--
branch : trunk
2007-01-27 19:41:39 +01:00
guido 00812c46f9 [svn r37439] Sorry, cfbolz, seems the print to stderr breaks some test... :|
--HG--
branch : trunk
2007-01-27 16:40:25 +01:00
guido fd40b43cdf [svn r37438] Fiddle-fixed --rest, although it works now some cleanups would be nice...
Cleaned up the tests a bit and re-enabled some (sucky tests are better than
no tests at all, I guess... :| ), re-enabled a debug print after complaints
from cfbolz ;) but this time it prints to stderr (to avoid ReST pollution).

--HG--
branch : trunk
2007-01-27 16:37:43 +01:00
guido 241ef0ff4a [svn r37435] Removing debug print (ended up in the ReST).
--HG--
branch : trunk
2007-01-27 15:29:17 +01:00
fijal f1b4e14f09 [svn r37433] Add a helper which returns value + path of a dir where value was found
--HG--
branch : trunk
2007-01-27 15:01:45 +01:00
fijal 23681b8059 [svn r37429] Ugh, revert.
--HG--
branch : trunk
2007-01-27 14:12:23 +01:00
fijal 6c428bafbf [svn r37427] Kill the last occurencies of pkgdir
--HG--
branch : trunk
2007-01-27 14:01:58 +01:00
fijal d929f633a7 [svn r37411] Fix a bit rest and test_rest. Note that actually these tests are
testing anything from time to time, need closer look.

--HG--
branch : trunk
2007-01-26 23:35:20 +01:00
fijal e3dfe80856 [svn r37409] Fix the test
--HG--
branch : trunk
2007-01-26 22:56:50 +01:00
fijal f098c2d353 [svn r37408] Kill two unnecessary tests now.
--HG--
branch : trunk
2007-01-26 22:54:52 +01:00
fijal ac977c865d [svn r37407] Unskip two tests.
--HG--
branch : trunk
2007-01-26 22:46:11 +01:00
fijal c72120b8fc [svn r37381] Add a shortcut.
--HG--
branch : trunk
2007-01-26 12:50:22 +01:00
fijal 3d301edbc7 [svn r37380] This is rather huge checkin of a rsession refactoring. Got rid
of most of the pkgdir and changed to use get_collector_trail.
Some tests need to be rewritten or killed, right now they're skips.

There are no checks (yet) whether this works with topdir being something
else than previous pkgdir, we'll see...

--HG--
branch : trunk
2007-01-26 12:49:59 +01:00
fijal ed9004fc46 [svn r37354] Move tracing a bit down (performance, no change in behaviour)
--HG--
branch : trunk
2007-01-25 20:59:17 +01:00
fijal 0a9399329f [svn r37348] Fallback
--HG--
branch : trunk
2007-01-25 18:13:24 +01:00
fijal c237e8d959 [svn r37345] Remove unneeded import
--HG--
branch : trunk
2007-01-25 18:02:01 +01:00
guido 4ea388b640 [svn r37337] Replaced try/except with a hasattr (makes that unrelated errors are no longer
obfuscated).

--HG--
branch : trunk
2007-01-25 16:23:18 +01:00
guido 987ae8e943 [svn r37326] Fixed exec command on win32
--HG--
branch : trunk
2007-01-25 13:56:12 +01:00
hpk 4963148482 [svn r37302] experimentally enable FD-based output capturing per-test
--HG--
branch : trunk
2007-01-24 22:11:24 +01:00
fijal 9dc7fbbd37 [svn r37300] Make clean complaints about lack of disthosts and call fixoptions if present.
--HG--
branch : trunk
2007-01-24 22:05:33 +01:00
fijal 72d87746c4 [svn r37298] (fijal, hpk) - bugfix
--HG--
branch : trunk
2007-01-24 22:04:57 +01:00
fijal 8a5d9ac93c [svn r37293] Another aproximation :-]
--HG--
branch : trunk
2007-01-24 21:25:17 +01:00
fijal e8e044761f [svn r37292] SkippedTryiter should be reporter more like in terminal.py
--HG--
branch : trunk
2007-01-24 21:23:05 +01:00
hpk c0535c70ad [svn r37290] * allow only CAPITAL letters for short options
* documentation and test for it
* streamlined documentation a bit

--HG--
branch : trunk
2007-01-24 20:18:46 +01:00
hpk 0fcaebd17c [svn r37287] don't eat exception, simply use finally
--HG--
branch : trunk
2007-01-24 18:48:13 +01:00
fijal fc740689d7 [svn r37286] Pass a config object deeper in hierarchy
--HG--
branch : trunk
2007-01-24 18:30:29 +01:00
hpk 73ffa14ac9 [svn r37285] this file describing option is obsolete now
--HG--
branch : trunk
2007-01-24 18:24:21 +01:00
hpk 7cf9824680 [svn r37278] move files from branch to trunk (and thus complete
the merge of the config branch into the trunk)

--HG--
branch : trunk
2007-01-24 17:46:46 +01:00
hpk 638e4318e4 [svn r37277] merging of file:///svn/py/branch/config/py/test/rsession/testing/test_webjs.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r36986 | fijal | 2007-01-19 13:05:58 +0100 (Fri, 19 Jan 2007) | 4 lines

    Improve the behaviour off cleanup and channel closing, at least on slave side.
    Some cleanups, got rid of some hacks (in favor of other hacks, but posix
    is a bit hackish anyway)

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:40:06 +01:00
hpk 86ac16b937 [svn r37276] merging of file:///svn/py/branch/config/py/test/rsession/testing/test_rsession.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37262 | hpk | 2007-01-24 14:55:00 +0100 (Wed, 24 Jan 2007) | 2 lines

    fix failing test

    ------------------------------------------------------------------------
    r37015 | fijal | 2007-01-19 17:24:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    Major cleanup of hostmanage. Got rid of global functions in favor of some better-structured classes.

    ------------------------------------------------------------------------
    r36974 | fijal | 2007-01-18 22:32:04 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix the test to actually perform RSync of pylib itself and a test if that was true.

    ------------------------------------------------------------------------
    r36970 | hpk | 2007-01-18 20:33:16 +0100 (Thu, 18 Jan 2007) | 6 lines

    some little cleanups - getting rid of we_are_remote
    which is not used anywhere as far as i can see.

    maciej: please check that i didn't mess anything
    up, but for me the same tests as before pass

    ------------------------------------------------------------------------
    r36968 | hpk | 2007-01-18 20:00:21 +0100 (Thu, 18 Jan 2007) | 2 lines

    fixing some imports

    ------------------------------------------------------------------------
    r36966 | fijal | 2007-01-18 19:36:02 +0100 (Thu, 18 Jan 2007) | 2 lines

    Add try: finally:

    ------------------------------------------------------------------------
    r36965 | fijal | 2007-01-18 19:35:00 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix the test.

    ------------------------------------------------------------------------
    r36963 | fijal | 2007-01-18 19:21:43 +0100 (Thu, 18 Jan 2007) | 2 lines

    Fix remaining tests and make strange hack with parse/reparse.

    ------------------------------------------------------------------------
    r36962 | fijal | 2007-01-18 19:06:13 +0100 (Thu, 18 Jan 2007) | 3 lines

    Huge refactoring. Got rid of remote_options and session_options, two tests
    still fail, so it's intermediate checkin.

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:40:04 +01:00
hpk a1f2e0a1e0 [svn r37274] merging of file:///svn/py/branch/config/py/test/rsession/web.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r36993 | fijal | 2007-01-19 14:54:25 +0100 (Fri, 19 Jan 2007) | 2 lines

    Add possibility to scroll or not to scroll to web frontend. This checkin makes me believe that there is lot of stuff to do in JS backend.

    ------------------------------------------------------------------------
    r36955 | hpk | 2007-01-18 17:44:21 +0100 (Thu, 18 Jan 2007) | 4 lines

    some mods to defaultconfest dist options
    and use "_dist_import_pypy", i.e. a leading underscore
    at least

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:56 +01:00
hpk 7c2ccd8bc5 [svn r37273] merging of file:///svn/py/branch/config/py/test/rsession/rsession.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37173 | fijal | 2007-01-23 11:26:32 +0100 (Tue, 23 Jan 2007) | 2 lines

    Adhere to --box option.

    ------------------------------------------------------------------------
    r37127 | fijal | 2007-01-22 13:48:33 +0100 (Mon, 22 Jan 2007) | 2 lines

    Add a few docstrings.

    ------------------------------------------------------------------------
    r37110 | hpk | 2007-01-22 00:39:24 +0100 (Mon, 22 Jan 2007) | 2 lines

    renaming some variables for more clarity

    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r37063 | arigo | 2007-01-20 17:00:31 +0100 (Sat, 20 Jan 2007) | 5 lines

    webbrowser.open() may block until the browser finishes or not, so better
    start it from a background thread.  An case where it blocks is if you
    define the $BROWSER environment variable.


    ------------------------------------------------------------------------
    r37015 | fijal | 2007-01-19 17:24:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    Major cleanup of hostmanage. Got rid of global functions in favor of some better-structured classes.

    ------------------------------------------------------------------------
    r36988 | fijal | 2007-01-19 13:25:05 +0100 (Fri, 19 Jan 2007) | 2 lines

    Improve the C-c support, also keep web interface informed about crashes/interrupts.

    ------------------------------------------------------------------------
    r36969 | fijal | 2007-01-18 20:10:36 +0100 (Thu, 18 Jan 2007) | 3 lines

    Move teardown hosts out of finally (needs further refactoring)
    Kill adddefaultoptions call for now.

    ------------------------------------------------------------------------
    r36964 | hpk | 2007-01-18 19:30:02 +0100 (Thu, 18 Jan 2007) | 8 lines

    move rconfig functionality to general Config object,
    with docstrings, and trying to change rsession accordingly.

    note that it's called "make_repr" and "merge_repr"
    the latter to make it obvious that we are changing
    the instance with the given repr.


    ------------------------------------------------------------------------
    r36962 | fijal | 2007-01-18 19:06:13 +0100 (Thu, 18 Jan 2007) | 3 lines

    Huge refactoring. Got rid of remote_options and session_options, two tests
    still fail, so it's intermediate checkin.

    ------------------------------------------------------------------------
    r36943 | fijal | 2007-01-18 16:09:30 +0100 (Thu, 18 Jan 2007) | 3 lines

    at least LSession should work now. Did not touched yet the remote options stuff,
    but some simplifications were done.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:54 +01:00
hpk 6dbd42b60e [svn r37272] merging of file:///svn/py/branch/config/py/test/rsession/rest.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37178 | fijal | 2007-01-23 11:38:39 +0100 (Tue, 23 Jan 2007) | 2 lines

    Make it a bit more working.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:52 +01:00
hpk 6040cf158d [svn r37269] merging of file:///svn/py/branch/config/py/test/config.py
revisions 36936 to 37267:

    ------------------------------------------------------------------------
    r37263 | hpk | 2007-01-24 14:59:20 +0100 (Wed, 24 Jan 2007) | 19 lines

    * introduce config.initdirect() which should
      be the central place to perform initialization
      on remote nodes/sides.

    * fix --looponfailing (which works nicely now)

    * have Conftest() be an instance instead of
      a class-variable (avoid global state)

    * more thoroughly use the "config.topdir" concept
      (which is not neccessarily the pkgdir.dirpath())

    * on merge_repr don't write values to
      global defaultconftest module (this
      gets tests failing that reuse defaultconftest
      module, but also we want to avoid global
      state in general)


    ------------------------------------------------------------------------
    r37243 | hpk | 2007-01-24 00:06:24 +0100 (Wed, 24 Jan 2007) | 2 lines

    small step-wise cleanups

    ------------------------------------------------------------------------
    r37238 | hpk | 2007-01-23 23:09:57 +0100 (Tue, 23 Jan 2007) | 2 lines

    why do it complicated?

    ------------------------------------------------------------------------
    r37235 | hpk | 2007-01-23 22:25:16 +0100 (Tue, 23 Jan 2007) | 5 lines

    added get_collector_trail method to get
    a representation of a collector relative
    to the topdir.


    ------------------------------------------------------------------------
    r37230 | hpk | 2007-01-23 20:44:22 +0100 (Tue, 23 Jan 2007) | 2 lines

    typo-level fixes

    ------------------------------------------------------------------------
    r37193 | hpk | 2007-01-23 14:53:17 +0100 (Tue, 23 Jan 2007) | 5 lines

    introduced config.topdir, tests and use it from terminal/remote at least.
    also fix fijal's "--box" option handling a bit, but i am not
    sure it should stay this way at all.


    ------------------------------------------------------------------------
    r37172 | fijal | 2007-01-23 11:26:10 +0100 (Tue, 23 Jan 2007) | 2 lines

    Boxing implies lsession

    ------------------------------------------------------------------------
    r37114 | hpk | 2007-01-22 02:20:30 +0100 (Mon, 22 Jan 2007) | 6 lines

    streamlining initial construction of collectors
    (to unify topdir/pkgdir/collector handling
    in rsession/terminal/normal)
    still work in-progress with a skipped test


    ------------------------------------------------------------------------
    r37112 | hpk | 2007-01-22 01:07:09 +0100 (Mon, 22 Jan 2007) | 3 lines

    * moving towards a common rootdir/root collector
    * adding an xxxed test

    ------------------------------------------------------------------------
    r37110 | hpk | 2007-01-22 00:39:24 +0100 (Mon, 22 Jan 2007) | 2 lines

    renaming some variables for more clarity

    ------------------------------------------------------------------------
    r37077 | hpk | 2007-01-20 22:26:52 +0100 (Sat, 20 Jan 2007) | 2 lines

    cleaning up fixoptions() a bit

    ------------------------------------------------------------------------
    r37076 | hpk | 2007-01-20 22:19:42 +0100 (Sat, 20 Jan 2007) | 2 lines

    unskip exec and looponfailing tests, fixes for that

    ------------------------------------------------------------------------
    r37075 | hpk | 2007-01-20 21:51:18 +0100 (Sat, 20 Jan 2007) | 2 lines

    remove two debug prints

    ------------------------------------------------------------------------
    r37074 | hpk | 2007-01-20 21:43:52 +0100 (Sat, 20 Jan 2007) | 9 lines

    * config.initsession() deals with getting at a session class
      and initiliazing it
    * config._getcollector(path) gets a collector pointing to path
    * added lots of tests
    * thus remove the strange getfscollector and map2colitems logic
    * mark some tkinter tests as skipped
    * fixing things all around


    ------------------------------------------------------------------------
    r37065 | arigo | 2007-01-20 17:15:10 +0100 (Sat, 20 Jan 2007) | 3 lines

    Choose a random free port when using the --runbrowser option,
    but stick to the fixed 8000 when using --startserver only.

    ------------------------------------------------------------------------
    r37061 | hpk | 2007-01-20 16:29:25 +0100 (Sat, 20 Jan 2007) | 8 lines

    refactoring/fixing the remote terminal approach
    (used for --exec and --looponfailing) to
    use the new configiguration.  Removes
    lots of strange code.

    XXX there are still some recursive testing issues.


    ------------------------------------------------------------------------
    r37055 | hpk | 2007-01-20 12:51:54 +0100 (Sat, 20 Jan 2007) | 4 lines

    reintroducing --session to lookup custom session objects in conftests.py
    there is no other way to override a session object from conftests.


    ------------------------------------------------------------------------
    r37025 | hpk | 2007-01-19 17:59:50 +0100 (Fri, 19 Jan 2007) | 2 lines

    remove lget and its last usage (which was a bit random)

    ------------------------------------------------------------------------
    r37020 | hpk | 2007-01-19 17:48:15 +0100 (Fri, 19 Jan 2007) | 3 lines

    switching in the new way of getting to a sessionclass,
    removing code in cmdline.py and elsewhere accordingly

    ------------------------------------------------------------------------
    r37013 | hpk | 2007-01-19 17:14:11 +0100 (Fri, 19 Jan 2007) | 2 lines

    somewhat simpler lookup mechanism for sessions

    ------------------------------------------------------------------------
    r37009 | hpk | 2007-01-19 16:50:32 +0100 (Fri, 19 Jan 2007) | 2 lines

    adding a config method to determine the session name

    ------------------------------------------------------------------------
    r36994 | fijal | 2007-01-19 15:08:16 +0100 (Fri, 19 Jan 2007) | 2 lines

    removal of some trailing white-spaces.

    ------------------------------------------------------------------------
    r36964 | hpk | 2007-01-18 19:30:02 +0100 (Thu, 18 Jan 2007) | 8 lines

    move rconfig functionality to general Config object,
    with docstrings, and trying to change rsession accordingly.

    note that it's called "make_repr" and "merge_repr"
    the latter to make it obvious that we are changing
    the instance with the given repr.


    ------------------------------------------------------------------------
    r36942 | hpk | 2007-01-18 16:08:06 +0100 (Thu, 18 Jan 2007) | 4 lines

    group things used for testing and not use non-underscore
    names (otherwise they are consdiered public and
    are possibly seen from apigen through py.test.config!)

    ------------------------------------------------------------------------
    r36941 | fijal | 2007-01-18 15:59:08 +0100 (Thu, 18 Jan 2007) | 2 lines

    Add a hack which allows to temporarily overwrite the config value.

    ------------------------------------------------------------------------
    r36937 | fijal | 2007-01-18 14:22:54 +0100 (Thu, 18 Jan 2007) | 2 lines

    Create a branch for further config cleanups.

    ------------------------------------------------------------------------

--HG--
branch : trunk
2007-01-24 17:39:42 +01:00
hpk 5992a8ef21 [svn r37264] create the new development trunk
--HG--
branch : trunk
2007-01-24 15:24:01 +01:00