[Piuparts-commits] [piuparts] 05/16: p-s: flush pending logfiles upon startup

Holger Levsen holger at layer-acht.org
Thu Apr 13 15:04:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 0405f9992cb83710efd82b5aa666413df3cf26aa
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Apr 11 12:01:53 2017 +0200

    p-s: flush pending logfiles upon startup
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog  | 1 +
 piuparts-slave.py | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6d60d57..b09de15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ piuparts (0.77) UNRELEASED; urgency=medium
     - Add "chroot-meta-auto" config option to automatically maintain cached
       target chroot meta data (using --end-meta and --save-end-meta) for
       distupgrade tests instead of generating it on-the-fly.
+    - Flush pending logfiles upon startup.
   * piuparts-analyze.py:
   * piuparts-report.py:
     - Plot all states in the graphs.
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 5b178f3..3ffbde9 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -961,6 +961,10 @@ def main():
         logging.error("no sections found")
         return
 
+    # flush logs from previous run
+    for section in sections:
+        section.run(do_processing=False)
+
     while True:
         global got_sighup
         test_count = 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list