From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/basic/
Date: Tue, 14 Jun 2011 08:32:16 +0000 (UTC) [thread overview]
Message-ID: <13078838744312067437202f67692d397111a26b.mgorny@gentoo> (raw)
commit: 13078838744312067437202f67692d397111a26b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 14 07:38:13 2011 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun 14 07:38:13 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=13078838
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ł Górny <mgorny@gentoo.org>
# Released under the terms of the 2-clause BSD license.
-from PMSTestSuite.library.case import phase_func_names
from PMSTestSuite.library.standard.dbus_case import DBusEbuildTestCase
class PhaseFunctionOrderTest(DBusEbuildTestCase):
@@ -12,9 +11,10 @@ class PhaseFunctionOrderTest(DBusEbuildTestCase):
'DESCRIPTION': 'Phase function execution order test'
}
- phase_funcs = 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)
def check_dbus_result(self, output, res):
if self.eapi < 2:
next reply other threads:[~2011-06-14 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 8:32 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-17 5:59 [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/basic/ Michał Górny
2011-06-14 12:35 Michał Górny
2011-06-14 8:32 Michał Górny
2011-05-31 21:06 Michał Górny
2011-05-31 19:18 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13078838744312067437202f67692d397111a26b.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox