diff options
author | Christian Tismer <tismer@stackless.com> | 2020-07-16 11:19:33 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-07-16 14:22:16 +0200 |
commit | 3ea38f5dd7c58e968f775e6c85af729ab34a7071 (patch) | |
tree | f2428c53521f0f307b4ccc96e28b152ba09ce35c /testing/buildlog.py | |
parent | e2fbf1ab26e1c763c556bd592dbf34a39ab84eaa (diff) |
Testing: Fix a quirk introduced by pruning
The newly introduced history pruning has a timing problem
on RHel 7.6. We disable pruning now when COIN is
active. This makes anyway only sense for multiple
builds on a developer machine but not in COIN.
Change-Id: Ic4b4f2e42303e343d222b98655300509f83c7288
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'testing/buildlog.py')
-rw-r--r-- | testing/buildlog.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/buildlog.py b/testing/buildlog.py index 47815d6d5..216282b4c 100644 --- a/testing/buildlog.py +++ b/testing/buildlog.py @@ -56,6 +56,7 @@ from textwrap import dedent from .helper import script_dir LogEntry = namedtuple("LogEntry", ["log_dir", "build_dir", "build_classifiers"]) +is_ci = os.environ.get("QTEST_ENVIRONMENT", "") == "ci" class BuildLog(object): @@ -109,7 +110,9 @@ class BuildLog(object): build_history.sort() self.history = build_history self._buildno = None - self.prune_old_entries(history_dir) + if not is_ci: + # there seems to be a timing problem in RHel 7.6, so we better don't touch it + self.prune_old_entries(history_dir) def prune_old_entries(self, history_dir): lst = [] |