diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-16 18:12:29 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-08-16 18:12:29 +0200 |
commit | cedeeaee05aa1f256994696b4a195e586a80b9b0 (patch) | |
tree | 95c5cfdba69f4a80950316cd74b26177b5088806 | |
parent | 10e78f24f72aee03f6a66ada1bd83d8ea191446b (diff) | |
parent | 5410d3b3fa536f305867a09a6ab640085ef6d0a0 (diff) | |
download | portage-cedeeaee05aa1f256994696b4a195e586a80b9b0.tar.gz portage-cedeeaee05aa1f256994696b4a195e586a80b9b0.tar.bz2 portage-cedeeaee05aa1f256994696b4a195e586a80b9b0.zip |
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
-rw-r--r-- | pym/portage/tests/ebuild/test_doebuild_spawn.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/portage/tests/ebuild/test_doebuild_spawn.py b/pym/portage/tests/ebuild/test_doebuild_spawn.py index 3b6ccdedc..8d40bf7ea 100644 --- a/pym/portage/tests/ebuild/test_doebuild_spawn.py +++ b/pym/portage/tests/ebuild/test_doebuild_spawn.py @@ -9,7 +9,9 @@ from portage.package.ebuild.config import config from portage.package.ebuild.doebuild import spawn as doebuild_spawn from portage.tests import TestCase from portage.tests.resolver.ResolverPlayground import ResolverPlayground +from _emerge.EbuildPhase import EbuildPhase from _emerge.Package import Package +from _emerge.TaskScheduler import TaskScheduler class DoebuildSpawnTestCase(TestCase): """ @@ -53,5 +55,13 @@ class DoebuildSpawnTestCase(TestCase): "%s %s" % (_shell_quote(EBUILD_SH_BINARY), phase), settings, free=1) self.assertEqual(rval, os.EX_OK) + + task_scheduler = TaskScheduler() + ebuild_phase = EbuildPhase(background=True, + phase=phase, scheduler=task_scheduler.sched_iface, + settings=settings) + task_scheduler.add(ebuild_phase) + task_scheduler.run() + self.assertEqual(ebuild_phase.returncode, os.EX_OK) finally: playground.cleanup() |