[Libreoffice-commits] dev-tools.git: qa/bugzillaChecker.py

Xisco Fauli xiscofauli at libreoffice.org
Thu Mar 8 17:47:06 UTC 2018


 qa/bugzillaChecker.py |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 18d7c58f384ae4e5c8dff09c5f07e05ab9949708
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date:   Thu Mar 8 18:46:00 2018 +0100

    QA: Fix error when bug is assigned at creation time

diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py
index cce8dff..0bf58e2 100755
--- a/qa/bugzillaChecker.py
+++ b/qa/bugzillaChecker.py
@@ -260,8 +260,7 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
                             if  removedAssignee == "libreoffice-bugs at lists.freedesktop.org" and \
                                     row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and \
                                     ( rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'):
-                                addAssigned = True
-                                addAssignedValue = resultValue
+                                util_add_to_result(lResults, 'change_status_assigned', resultValue)
                             if addedAssignee == "libreoffice-bugs at lists.freedesktop.org" and \
                                     row['assigned_to'] == 'libreoffice-bugs at lists.freedesktop.org' and rowStatus == 'ASSIGNED':
                                 util_add_to_result(lResults, 'remove_assigned_status', resultValue)
@@ -307,9 +306,10 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
                 util_add_to_result(lResults, 'is_reopened', reopenValue)
 
             #In case the reporter assigned the bug to himself at creation time
-            if addAssigned or (creationDate >= cfg['reportPeriod'] and row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and \
-                    (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED')):
-                util_add_to_result(lResults, 'change_status_assigned', addAssignedValue)
+            if creationDate >= cfg['reportPeriod'] and row['assigned_to'] != 'libreoffice-bugs at lists.freedesktop.org' and \
+                    (rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED'):
+                value = [ rowId, row['creation_time'], row['assigned_to'] ]
+                util_add_to_result(lResults, 'change_status_assigned', value)
 
             if movedToNeedInfo and everConfirmed:
                 util_add_to_result(lResults, 'moved_to_needinfo', movedToNeedInfoValue)


More information about the Libreoffice-commits mailing list