From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RvI9o-0003YR-Tv for garchives@archives.gentoo.org; Thu, 09 Feb 2012 00:46:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16ACBE063E; Thu, 9 Feb 2012 00:46:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D5808E063E for ; Thu, 9 Feb 2012 00:46:31 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5ED71B4031 for ; Thu, 9 Feb 2012 00:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 8CE1BE5400 for ; Thu, 9 Feb 2012 00:46:28 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <6b0101ea37ad9e7db3866d3ccfe8e398529f7f29.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/ebuild/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/tests/ebuild/test_ipc_daemon.py X-VCS-Directories: pym/portage/tests/ebuild/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 6b0101ea37ad9e7db3866d3ccfe8e398529f7f29 Date: Thu, 9 Feb 2012 00:46:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9551af9f-434f-4810-885f-2730899ba799 X-Archives-Hash: cdd6fb4f26c6e95c329d454dd2144f27 commit: 6b0101ea37ad9e7db3866d3ccfe8e398529f7f29 Author: Zac Medico gentoo org> AuthorDate: Thu Feb 9 00:46:02 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Feb 9 00:46:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D6b0101ea IpcDaemonTestCase: init start_time earlier Since commit 4620d6aba1c5c10344e311585516ee43819b703c, the SequentialTaskQueue.add() method starts the task immediately, so initialize start_time before that happens. --- pym/portage/tests/ebuild/test_ipc_daemon.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/te= sts/ebuild/test_ipc_daemon.py index c638437..edfc058 100644 --- a/pym/portage/tests/ebuild/test_ipc_daemon.py +++ b/pym/portage/tests/ebuild/test_ipc_daemon.py @@ -75,9 +75,9 @@ class IpcDaemonTestCase(TestCase): daemon.cancel() =20 exit_command.reply_hook =3D exit_command_callback + start_time =3D time.time() task_scheduler.add(daemon) task_scheduler.add(proc) - start_time =3D time.time() task_scheduler.run(timeout=3Dself._SCHEDULE_TIMEOUT) task_scheduler.clear() hardlock_cleanup(env['PORTAGE_BUILDDIR'], @@ -112,9 +112,9 @@ class IpcDaemonTestCase(TestCase): daemon.cancel() =20 exit_command.reply_hook =3D exit_command_callback + start_time =3D time.time() task_scheduler.add(daemon) task_scheduler.add(proc) - start_time =3D time.time() task_scheduler.run(timeout=3Dshort_timeout_ms) task_scheduler.clear() hardlock_cleanup(env['PORTAGE_BUILDDIR'],