diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-16 18:42:06 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-16 18:42:06 -0700 |
commit | ae9b8998cc5255504aad85db7846e843760b56c7 (patch) | |
tree | 502c2ae1f77e262b0c3221d00e1206f0b4731fd4 /pym/portage | |
parent | 3de45c37faf3eb139e54a301eb9f6c8a8970b6ec (diff) | |
download | portage-ae9b8998cc5255504aad85db7846e843760b56c7.tar.gz portage-ae9b8998cc5255504aad85db7846e843760b56c7.tar.bz2 portage-ae9b8998cc5255504aad85db7846e843760b56c7.zip |
Reuse a single TaskScheduler instance.
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/tests/ebuild/test_doebuild_spawn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/tests/ebuild/test_doebuild_spawn.py b/pym/portage/tests/ebuild/test_doebuild_spawn.py index 76d114ddf..32123e279 100644 --- a/pym/portage/tests/ebuild/test_doebuild_spawn.py +++ b/pym/portage/tests/ebuild/test_doebuild_spawn.py @@ -51,13 +51,14 @@ class DoebuildSpawnTestCase(TestCase): # Create a fake environment, to pretend as if the ebuild # has been sourced already. open(os.path.join(settings['T'], 'environment'), 'wb') + + task_scheduler = TaskScheduler() for phase in ('_internal_test',): rval = doebuild_spawn( "%s %s" % (_shell_quote(EBUILD_SH_BINARY), phase), settings, free=1) self.assertEqual(rval, os.EX_OK) - task_scheduler = TaskScheduler() ebuild_phase = EbuildPhase(background=False, phase=phase, scheduler=task_scheduler.sched_iface, settings=settings) @@ -65,7 +66,6 @@ class DoebuildSpawnTestCase(TestCase): task_scheduler.run() self.assertEqual(ebuild_phase.returncode, os.EX_OK) - task_scheduler = TaskScheduler() ebuild_phase = MiscFunctionsProcess(background=False, commands=['success_hooks'], scheduler=task_scheduler.sched_iface, settings=settings) |