[Libreoffice-commits] dev-tools.git: esc-reporting/esc-collect.py

Shinnok admin at shinnok.com
Wed Oct 25 11:00:48 UTC 2017


 esc-reporting/esc-collect.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 202aea16bcecd791a155d9dc5678bdd6cd38e1ed
Author: Shinnok <admin at shinnok.com>
Date:   Wed Oct 25 12:21:05 2017 +0200

    Fix crashtest reporting in the daily ESC prototype.
    
    Working index wasn't properly incremented.
    
    Change-Id: I198d3cbcdc1ab6751b81eaac2810a030f88e495c
    Reviewed-on: https://gerrit.libreoffice.org/43822
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py
index d336354..c573ce0 100755
--- a/esc-reporting/esc-collect.py
+++ b/esc-reporting/esc-collect.py
@@ -687,12 +687,13 @@ def get_crash(cfg):
     if inx == -1:
        print("ERROR: http://dev-builds.libreoffice.org/crashtest/?C=M&O=D not showing DIR list")
        return
-    end = dirList.find('"', inx+7)
+    inx = inx + 7
+    end = dirList.find('"', inx)
     url = 'http://dev-builds.libreoffice.org/crashtest/' + dirList[inx:end] + '/'
 
     for type in 'crashlog', 'exportCrash':
         tmp = util_load_url(url + type + '.txt', useRaw=True).split('\n')
-        rawList['crashtest'][type] = len(tmp) -1
+        rawList['crashtest'][type] = len(tmp) - 1
 
     print("Updating crashreport dump")
     rawList['crashreport'] = util_load_url('http://crashreport.libreoffice.org/api/get/crash-count')


More information about the Libreoffice-commits mailing list