1 |
commit: 52f785d4268d9238e940e4c2b3297f7cdeeea0a8 |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 17:22:11 2022 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 17:22:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=52f785d4 |
7 |
|
8 |
clean portage logs |
9 |
|
10 |
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org> |
11 |
|
12 |
buildbot_gentoo_ci/config/buildfactorys.py | 12 ++++++++++++ |
13 |
1 file changed, 12 insertions(+) |
14 |
|
15 |
diff --git a/buildbot_gentoo_ci/config/buildfactorys.py b/buildbot_gentoo_ci/config/buildfactorys.py |
16 |
index 6203a1f..53e7bb1 100644 |
17 |
--- a/buildbot_gentoo_ci/config/buildfactorys.py |
18 |
+++ b/buildbot_gentoo_ci/config/buildfactorys.py |
19 |
@@ -109,6 +109,18 @@ def run_build_request(): |
20 |
workdir='/etc/')) |
21 |
f.addStep(buildbot_steps.MakeDirectory(dir="portage", |
22 |
workdir='/etc/')) |
23 |
+ # Clean /var/cache/portage/logs and emerge.log |
24 |
+ f.addStep(buildbot_steps.ShellCommand( |
25 |
+ name='Clean emerge.log', |
26 |
+ command=['rm', 'emerge.log'], |
27 |
+ workdir='/var/log/' |
28 |
+ )) |
29 |
+ f.addStep(buildbot_steps.ShellCommand( |
30 |
+ flunkOnFailure=False, |
31 |
+ name='Clean logs', |
32 |
+ command=['rm', '-R', 'logs'], |
33 |
+ workdir='/var/cache/portage/' |
34 |
+ )) |
35 |
# setup the profile |
36 |
#NOTE: pkgcheck do not support it as a dir |
37 |
#f.addStep(buildbot_steps.MakeDirectory(dir="make.profile", |