summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-12 06:22:26 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-12 06:22:26 +0000
commit31b18e72b3ed4077f31be583d9a83ad2de53df29 (patch)
tree29cb7823c5fc4fce43d29b5cb0e438f0f95e30ed /pym/repoman
parentf9dc49ffd4486777e96b2e045c0b4523c479fef4 (diff)
downloadportage-31b18e72b3ed4077f31be583d9a83ad2de53df29.tar.gz
portage-31b18e72b3ed4077f31be583d9a83ad2de53df29.tar.bz2
portage-31b18e72b3ed4077f31be583d9a83ad2de53df29.zip
Create a test case for the poll loop which uses the loop to read data from a
pipe and assert that the data written to the pipe is identical to the data read from the pipe. In order to implement this test, several useful classes have been added: * PipeReader Reads output from one or more files and saves it in memory, for retrieval via the getvalue() method. This is driven by the scheduler's poll() loop, so it runs entirely within the current process. * QueueScheduler Add instances of SequentialTaskQueue and then call run(). The run() method returns when no tasks remain. * TaskScheduler A simple way to handle scheduling of AsynchrousTask instances. Simply add tasks and call run(). The run() method returns when no tasks remain. svn path=/main/trunk/; revision=11022
Diffstat (limited to 'pym/repoman')
0 files changed, 0 insertions, 0 deletions