1 |
commit: 9fb404f9c26c3007e158d5f597f03b0491b973fa |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 06:19:48 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 06:19:48 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=9fb404f9 |
7 |
|
8 |
Fix mutating shared phase funcs. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/library/case.py | 13 +++++++------ |
12 |
PMSTestSuite/library/standard | 2 +- |
13 |
2 files changed, 8 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/PMSTestSuite/library/case.py b/PMSTestSuite/library/case.py |
16 |
index 9e72a2d..084edd8 100644 |
17 |
--- a/PMSTestSuite/library/case.py |
18 |
+++ b/PMSTestSuite/library/case.py |
19 |
@@ -2,6 +2,13 @@ |
20 |
# (c) 2011 Michał Górny <mgorny@g.o> |
21 |
# Released under the terms of the 2-clause BSD license. |
22 |
|
23 |
+# XXX: move to some consts module? |
24 |
+phase_func_names = [ |
25 |
+ 'pkg_pretend', 'pkg_setup', 'src_unpack', 'src_prepare', |
26 |
+ 'src_configure', 'src_compile', 'src_install', |
27 |
+ 'pkg_preinst', 'pkg_postinst' |
28 |
+] |
29 |
+ |
30 |
ebuild_header = '''# Copyright 1999-2011 Gentoo Foundation |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
# $Header: $ |
33 |
@@ -17,12 +24,6 @@ class TestCase(object): |
34 |
class EbuildTestCase(TestCase): |
35 |
""" Test case using a single ebuild (per EAPI). """ |
36 |
|
37 |
- phase_funcs = dict([(func, []) for func in ( |
38 |
- 'pkg_pretend', 'pkg_setup', 'src_unpack', 'src_prepare', |
39 |
- 'src_configure', 'src_compile', 'src_install', |
40 |
- 'pkg_preinst', 'pkg_postinst' |
41 |
- )]) |
42 |
- |
43 |
@classmethod |
44 |
def inst_all(cls, *args, **kwargs): |
45 |
""" |
46 |
|
47 |
diff --git a/PMSTestSuite/library/standard b/PMSTestSuite/library/standard |
48 |
index a678eb2..ec868c9 160000 |
49 |
--- a/PMSTestSuite/library/standard |
50 |
+++ b/PMSTestSuite/library/standard |
51 |
@@ -1 +1 @@ |
52 |
-Subproject commit a678eb23b92b05685552da6a09642d14fdc38972 |
53 |
+Subproject commit ec868c966605b4d333240c27ed86811c1d154406 |