1 |
commit: 78c3dee66ba29ecb937643a7e3bb650e7b87dbb9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 06:19:16 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 18:01:35 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=78c3dee6 |
7 |
|
8 |
Fix mutating shared phase_funcs. |
9 |
|
10 |
--- |
11 |
basic/phase_function_order.py | 8 +++----- |
12 |
1 files changed, 3 insertions(+), 5 deletions(-) |
13 |
|
14 |
diff --git a/basic/phase_function_order.py b/basic/phase_function_order.py |
15 |
index 7a9cc13..80a1c4e 100644 |
16 |
--- a/basic/phase_function_order.py |
17 |
+++ b/basic/phase_function_order.py |
18 |
@@ -2,7 +2,7 @@ |
19 |
# (c) 2011 Michał Górny <mgorny@g.o> |
20 |
# Released under the terms of the 2-clause BSD license. |
21 |
|
22 |
-from PMSTestSuite.library.case import EbuildTestCase |
23 |
+from PMSTestSuite.library.case import EbuildTestCase, phase_func_names |
24 |
|
25 |
class PhaseFunctionOrderTest(EbuildTestCase): |
26 |
relevant_eapis = (0, 2, 4) |
27 |
@@ -11,10 +11,8 @@ class PhaseFunctionOrderTest(EbuildTestCase): |
28 |
'DESCRIPTION': 'Phase function execution order test' |
29 |
} |
30 |
|
31 |
- def __init__(self, *args, **kwargs): |
32 |
- for func in self.phase_funcs: |
33 |
- self.phase_funcs[func].append("pms-test_append_result %s" % func) |
34 |
- EbuildTestCase.__init__(self, *args, **kwargs) |
35 |
+ phase_funcs = dict([(x, ["pms-test_append_result %s" % x]) |
36 |
+ for x in phase_func_names]) |
37 |
|
38 |
def check_output(self, output): |
39 |
if self.eapi < 2: |