summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/ebuild
Commit message (Collapse)AuthorAgeFilesLines
* DoebuildSpawnTestCase: also call spawn_nofetchZac Medico2013-01-101-12/+27
|
* Revert "test_ipc_daemon: handle fork/finally race"Zac Medico2012-10-081-9/+0
| | | | | This reverts commit 56fbe3fe63adf4e7c5b47400182cd857d145d5b0. The race is now handled internally by spawn and ForkProcess.
* test_ipc_daemon: handle fork/finally raceZac Medico2012-10-081-0/+9
|
* PollScheduler: rename sched_iface to _sched_ifaceZac Medico2012-10-071-4/+2
| | | | | | It isn't used externally anymore, since SchedulerInterface is used directly in those places now. Many of the self.sched_iface references updated here, it's more appropriate to use self._event_loop.
* Substitute SchedulerInterface for PollScheduler.Zac Medico2012-10-071-3/+4
| | | | | | SchedulerInterface suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* Substitute EventLoop for PollScheduler.Zac Medico2012-10-051-3/+2
| | | | | EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* PollScheduler: remove register/unregister methodsZac Medico2012-10-051-2/+1
| | | | | | | These methods were aliases for the EventLoop io_add_watch and source_remove methods. Migrating to the EventLoop method names allows an EventLoop instance to substitute for a PollScheduler inside subclasses of AbstractPollTask.
* TaskScheduler: inherit AsyncSchedulerZac Medico2012-10-051-22/+36
| | | | This allows the QueueScheduler class to be eliminated.
* test_ipc_daemon: implement internal SleepProcessZac Medico2012-10-041-3/+12
| | | | | Emulate the sleep command, in order to ensure a consistent return code when it is killed by SIGTERM (see bug #437180).
* test_ipc_daemon: increase sleep for bug #436334Zac Medico2012-09-261-1/+3
|
* _pkg_str: pass in config + metadata with KEYWORDSZac Medico2012-08-241-0/+2
| | | | | This will be needed in order to support stable use.mask/force for bug #431078.
* ConfigTestCase: fix warning about manifest-hashesZac Medico2012-07-041-2/+2
|
* AsynchronousTask: don't wait for exit statusZac Medico2012-02-131-4/+6
| | | | | | Synchronous waiting for status is not supported, since it would be vulnerable to hitting the recursion limit when a large number of tasks need to be terminated simultaneously, like in bug #402335.
* IpcDaemonTestCase: init start_time earlierZac Medico2012-02-081-2/+2
| | | | | | Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the SequentialTaskQueue.add() method starts the task immediately, so initialize start_time before that happens.
* test_config: fix AttributeError: 'str'Zac Medico2012-01-121-1/+2
|
* RepoConfig.update(): copy more attributesZac Medico2011-12-271-0/+2
| | | | | | | | | | This fixes a regression since commit 10246cd535f909dda8bd05de617c32d2b8a56b4a which caused layout.conf settings such as thin-manifests to be ignored for repositories that had repos.conf settings that did not specify the repository location. In order to trigger this case, ResolverPlayground has been modified to omit the location of each repository in the repos.conf file that it generates.
* _pty.py: remove _test_pty_eof()Zac Medico2011-12-221-26/+0
| | | | | | | | | | | If array.fromfile() is not used, then _test_pty_eof() is useless. This function was for runtime detection of python issue 5380: http://bugs.python.org/issue5380 However, array.fromfile() use has since been abandoned due to bugs that exist in all known versions of Python (including Python 2.7 and Python 3.2). See PipeReaderArrayTestCase, for example.
* _test_pty_eof: use os.read, not array.fromfileZac Medico2011-12-161-27/+2
| | | | | | We have abandoned array.fromfile() due to bugs that exist in all known versions of Python (including Python 2.7 and Python 3.2). See PipeReaderArrayTestCase, for example.
* PtyEofFdopenUnBufferedTestCase: PyPy TODOZac Medico2011-12-151-0/+6
| | | | https://bugs.pypy.org/issue956
* locks.py: fix hardlink locks for bug #394195Zac Medico2011-12-132-0/+14
| | | | | | This updates the hardlink locking code to support the non-blocking, lockfile(wantnewlockfile=False), and lockfile(file_object) behaviors which are used by portage code.
* Use portage.shutil for safer unicode handling.Zac Medico2011-12-101-2/+2
|
* parse_layout_conf: fix profile-formats warningZac Medico2011-10-271-0/+1
|
* test_config: test PORTDIR default mastersZac Medico2011-10-251-0/+5
|
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-252-2/+2
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* testManifest: enable manifest-hashesZac Medico2011-10-031-0/+1
|
* Test non-empty thin manifests.Zac Medico2011-09-141-1/+20
|
* Handle non-existent thin manifest in tests.Zac Medico2011-09-141-3/+1
|
* Add tests for thin manifestsSebastian Luther2011-09-121-0/+48
|
* test_pty_eof: add SKIP msg for unsupported platZac Medico2011-09-041-0/+13
|
* Add some comments, which will allow to easier find code, which should beArfrever Frehtes Taifersar Arahesis2011-08-251-0/+1
| | | | removed when support for older versions of Python is removed.
* python3.2 fixes: use array.tobytes()Zac Medico2011-08-241-4/+7
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-241-2/+2
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-3/+3
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* SpawnTestCase: check returncodeZac Medico2011-06-091-1/+1
|
* Update timestamps in headers of modified files.Zac Medico2011-05-171-1/+1
|
* Enable --autounmask by defaultSebastian Luther2011-05-161-0/+2
|
* test_pty_eof: separate classes for self.todoZac Medico2011-01-211-1/+2
|
* SpawnProcess: read proc with unbuffered fdopenZac Medico2011-01-201-2/+2
| | | | | This enables pty support in python3, by using unbuffered fdopen to avoid http://bugs.python.org/issue5380.
* PtyEofTestCase: test unbuffered fdopenZac Medico2011-01-201-2/+14
| | | | | | New development: It appears that array.fromfile() is usable with python3 as long as fdopen is called with a bufsize argument of 0.
* Fix LazyItemsDict.__deepcopy__() for python 2.7.Zac Medico2010-10-291-0/+22
| | | | | | In python-2.7, changes in deepcopy() make LazyItemsDict.__deepcopy__() fail in some cases. Thanks to Diego E. Pettenò <flameeyes@g.o> for reporting.
* reposyntax: add support in _config/*Sebastian Luther2010-09-261-17/+17
|
* Fix ConfigTestCase.testLicenseManager() breakage from from previousZac Medico2010-09-211-1/+1
| | | | commit.
* ResolverPlayground: Add multi repo supportSebastian Luther2010-09-141-7/+9
|
* Make IpcDaemonTestCase use a finally block to unlock PORTAGE_BUILDDIR.v2.2_rc82Zac Medico2010-09-141-1/+3
|
* Make EbuildBuildDir use the PORTAGE_BUILDDIR variable instead of theZac Medico2010-09-141-1/+1
| | | | dir_path attribute.
* Make IpcDaemonTestCase use EbuildBuildDir for lock creation.Zac Medico2010-09-141-4/+14
|
* Tests: ebuild/test_config: Make sure -atoms in package.mask work as PMS wants itSebastian Luther2010-09-101-1/+68
|
* Make DoebuildSpawnTestCase use a PollScheduler instance directly sinceZac Medico2010-09-051-8/+8
| | | | TaskScheduler isn't really needed.
* Make SpawnTestCase use a PollScheduler instance directly sinceZac Medico2010-09-051-5/+5
| | | | TaskScheduler isn't really needed.
* In IpcDaemonTestCase, assert that process and daemon isAlive() methodsZac Medico2010-09-051-1/+3
| | | | return False after each run.