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 1QWP2z-0006YO-Ii for garchives@archives.gentoo.org; Tue, 14 Jun 2011 08:32:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAFF11C048; Tue, 14 Jun 2011 08:32:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8A7551C045 for ; Tue, 14 Jun 2011 08:32:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 099C41B4020 for ; Tue, 14 Jun 2011 08:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5816B80048 for ; Tue, 14 Jun 2011 08:32:16 +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: <13078838744312067437202f67692d397111a26b.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/basic/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/library/standard/basic/phase_function_order.py X-VCS-Directories: PMSTestSuite/library/standard/basic/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 13078838744312067437202f67692d397111a26b Date: Tue, 14 Jun 2011 08:32:16 +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: X-Archives-Hash: 6e353480845a6dcb33affde2c0970b5b commit: 13078838744312067437202f67692d397111a26b Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jun 14 07:38:13 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jun 14 07:38:13 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D13078838 Use pre-generated phase functions instead of referring to list. --- .../library/standard/basic/phase_function_order.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PMSTestSuite/library/standard/basic/phase_function_order.py = b/PMSTestSuite/library/standard/basic/phase_function_order.py index cf4dd0a..8475d72 100644 --- a/PMSTestSuite/library/standard/basic/phase_function_order.py +++ b/PMSTestSuite/library/standard/basic/phase_function_order.py @@ -2,7 +2,6 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from PMSTestSuite.library.case import phase_func_names from PMSTestSuite.library.standard.dbus_case import DBusEbuildTestCase =20 class PhaseFunctionOrderTest(DBusEbuildTestCase): @@ -12,9 +11,10 @@ class PhaseFunctionOrderTest(DBusEbuildTestCase): 'DESCRIPTION': 'Phase function execution order test' } =20 - phase_funcs =3D dict([(x, [ - "pms-test-dbus_append_result %s" % x - ]) for x in phase_func_names]) + def __init__(self, *args, **kwargs): + DBusEbuildTestCase.__init__(self, *args, **kwargs) + for k, lines in self.phase_funcs.items(): + lines.append('pms-test-dbus_append_result %s' % k) =20 def check_dbus_result(self, output, res): if self.eapi < 2: