1 |
commit: 780f6f0a6327abb2cc8cdc045c00ba5ef9ccf694 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 21:06:44 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 21:06:44 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=780f6f0a |
7 |
|
8 |
Unmerge tests when done. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/testrunner.py | 4 ++++ |
12 |
1 files changed, 4 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/PMSTestSuite/testrunner.py b/PMSTestSuite/testrunner.py |
15 |
index ced3b3c..e435093 100644 |
16 |
--- a/PMSTestSuite/testrunner.py |
17 |
+++ b/PMSTestSuite/testrunner.py |
18 |
@@ -12,6 +12,10 @@ class TestRunnerCLI(EbuildGenCLI): |
19 |
if not res: |
20 |
failed.append(t) |
21 |
|
22 |
+ if len(failed) != len(self.cpvs): |
23 |
+ print('-> Unmerging test ebuilds...') |
24 |
+ self.pm.unmerge(cpvs) |
25 |
+ |
26 |
if not failed: |
27 |
print('%d tests completed successfully.' % len(self.cpvs)) |
28 |
else: |