1 |
commit: 3db0ba1d928414bedb4e697ff79464d59ab8a783 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 18:14:11 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 18:14:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=3db0ba1d |
7 |
|
8 |
Initialize PN for test earlier and store it. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/library/case.py | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/PMSTestSuite/library/case.py b/PMSTestSuite/library/case.py |
15 |
index 120b71c..a9b27d3 100644 |
16 |
--- a/PMSTestSuite/library/case.py |
17 |
+++ b/PMSTestSuite/library/case.py |
18 |
@@ -60,6 +60,7 @@ class EbuildTestCase(TestCase): |
19 |
def __init__(self, eapi): |
20 |
""" Instiantate the test case for a particular EAPI. """ |
21 |
self.eapi = eapi |
22 |
+ self.pn = cleanup_test_case_name(self.__class__.__name__) |
23 |
|
24 |
def get_output_files(self): |
25 |
""" |
26 |
@@ -95,7 +96,7 @@ class EbuildTestCase(TestCase): |
27 |
|
28 |
return ''.join(contents) |
29 |
|
30 |
- pn = cleanup_test_case_name(self.__class__.__name__) |
31 |
+ pn = self.pn |
32 |
fn = 'pms-test/%s/%s-%s.ebuild' % (pn, pn, self.eapi) |
33 |
|
34 |
return {fn: EbuildTestCaseEbuildFile(self)} |