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 1Ri6g1-0001rF-Kc for garchives@archives.gentoo.org; Tue, 03 Jan 2012 15:53:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C60BB21C163; Tue, 3 Jan 2012 15:52:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9623821C163 for ; Tue, 3 Jan 2012 15:52:33 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1699E1B4016 for ; Tue, 3 Jan 2012 15:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id F3B898004F for ; Tue, 3 Jan 2012 15:52:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/cli.py X-VCS-Directories: pmstestsuite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bb3aaa1c8bcffe9c0656d118d1859da81844ec68 Date: Tue, 3 Jan 2012 15:52:31 +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: a9a64983-017b-4166-a7b0-d74cca0e9f24 X-Archives-Hash: c8b8ee26afc7f58bbf1bed1b02a1c232 commit: bb3aaa1c8bcffe9c0656d118d1859da81844ec68 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jan 3 11:19:29 2012 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jan 3 11:19:29 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3Dbb3aaa1c Move repo startup code to an idle. --- pmstestsuite/cli.py | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py index 3d4b79e..3efd658 100644 --- a/pmstestsuite/cli.py +++ b/pmstestsuite/cli.py @@ -248,9 +248,7 @@ class PMSTestSuiteCLI(object): else: self.start_pm() =20 - def main(self, argv): - self._start(*argv) - + def generate_and_start(self): print('-> Generating ebuilds...') files =3D {} for t in self.test_library: @@ -285,6 +283,13 @@ class PMSTestSuiteCLI(object): self.results =3D {} self.prepare(first =3D True) =20 + return False + + def main(self, argv): + self._start(*argv) + + gobject.idle_add(self.generate_and_start) + self.ret =3D 1 self.loop =3D gobject.MainLoop() self.loop.run()