summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/process
Commit message (Collapse)AuthorAgeFilesLines
* PipeLogger: handle file object for input_fdZac Medico2013-01-071-5/+2
|
* PipeReaderBlockingIO handle threading ImportErrorZac Medico2012-12-271-0/+1
|
* Add PipeReaderBlockingIO, Jython experimentation.Zac Medico2012-12-271-0/+62
|
* Test PopenProcess + PipeLogger.Zac Medico2012-10-181-2/+42
|
* Test PopenProcess.Zac Medico2012-10-161-0/+48
|
* TaskScheduler: inherit AsyncSchedulerZac Medico2012-10-051-9/+8
| | | | This allows the QueueScheduler class to be eliminated.
* test_poll: use TaskSchedulerZac Medico2012-02-081-7/+7
|
* PollScheduler: don't inherit EventLoopZac Medico2012-02-081-1/+1
|
* test_poll: separate classes for pipe vs. ptyZac Medico2011-12-181-14/+23
| | | | Also, generate appropriate SKIP message if pty is not acquired.
* PipeReaderArrayTestCase: sleep for fast computersZac Medico2011-12-181-1/+4
| | | | Allows reliable triggering of the failure mode on fast computers.
* test_poll: add note about unbuffered fdopenZac Medico2011-12-161-0/+3
|
* test_poll: fix array testZac Medico2011-12-161-62/+20
| | | | | Since SpawnProcess no longer uses array, add conditional array support to PipeReader and use that for tests.
* SpawnProcess: work around array.fromfile() bugsZac Medico2011-12-151-5/+61
| | | | | | When I extended test_poll to test SpawnProcess array.fromfile() usage, it exposed bugs in array.fromfile() that I couldn't find a way to handle. So, use os.read() instead.
* test_poll: test different sizes, and pty tooZac Medico2011-12-151-6/+17
|
* test_poll: fix "ResourceWarning: unclosed file"Zac Medico2011-08-281-1/+9
|
* fdopen: read from processes in unbuffered modev2.2.0_alpha19Zac Medico2011-01-211-2/+2
| | | | | It doesn't make sense to use buffers in cases like this, and is potentially error prone (as in bug #287648 / python issue 5380).
* Make PipeReaderTestCase use a PollScheduler instance directly sinceZac Medico2010-09-051-6/+6
| | | | TaskScheduler isn't really needed.
* Clean up and simplify PipeReaderTestCase.Zac Medico2010-09-051-29/+12
|
* Remove all svn $Id keywords.Zac Medico2010-03-242-2/+0
|
* Use portage.os, _content_encoding, and _fs_encoding where appropriate.Zac Medico2009-08-171-5/+2
| | | | svn path=/main/trunk/; revision=14078
* Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 3).Zac Medico2009-06-221-1/+1
| | | | | | Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13668
* Fix imports broken by splitting of _emerge/__init__.py.Zac Medico2009-06-221-1/+3
| | | | svn path=/main/trunk/; revision=13664
* Fix PipeReader and PipeReaderTestCase to work with binary strings in py3k.Zac Medico2009-02-271-1/+4
| | | | svn path=/main/trunk/; revision=12720
* Fix test breakage due to change in calling order of AsynchronousTask startZac Medico2009-02-271-5/+7
| | | | | | listeners from r12713. svn path=/main/trunk/; revision=12717
* Set svn:keywords Id on all files.Zac Medico2009-02-182-2/+2
| | | | svn path=/main/trunk/; revision=12626
* Fix identation (tabnanny complains about this) branches/prefix r11110Zac Medico2008-07-171-1/+1
| | | | svn path=/main/trunk/; revision=11111
* * Since can_poll_pty() is unsafe due to he possibility of the poll() callZac Medico2008-07-131-16/+0
| | | | | | | | | blocking forever, replace it with a simpler test on /dev/null that's derived from a test in a glib2 configure script. * Remove PtyReaderTestCase since it has the same problem as can_poll_pty(). svn path=/main/trunk/; revision=11039
* Split out a portage._create_pty_or_pipe() function to avoid duplicate code.Zac Medico2008-07-121-26/+3
| | | | svn path=/main/trunk/; revision=11024
* Derive a PtyReaderTestCase from PipeReaderTestCase. This test is expected toZac Medico2008-07-121-3/+52
| | | | | | | fail on some operating systems such as Darwin that do not support poll() on pty devices. svn path=/main/trunk/; revision=11023
* Create a test case for the poll loop which uses the loop to read data from aZac Medico2008-07-123-0/+46
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