[testrail] Stats generation script fails: 'TypeError: string indices must be integers, not str'

Bug #1548769 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Panchenko
8.0.x
Fix Released
High
Artem Panchenko

Bug Description

Stats generation script fails for test plans which contain links to original bug along with links to its duplicates (for different results):

Traceback (most recent call last):
  File "fuelweb_test/testrail/generate_statistics.py", line 526, in <module>
    sys.exit(main())
  File "fuelweb_test/testrail/generate_statistics.py", line 504, in main
    stats = generator.dump()
  File "fuelweb_test/testrail/generate_statistics.py", line 303, in dump
    if not t['blocked']])
TypeError: string indices must be integers, not str

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/283559

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: New → In Progress
tags: added: non-release
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/283563

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/283559
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=9c6e6a1cd4a8620ed8c81c2f332484ea29953399
Submitter: Jenkins
Branch: master

commit 9c6e6a1cd4a8620ed8c81c2f332484ea29953399
Author: Artem Panchenko <email address hidden>
Date: Tue Feb 23 13:26:17 2016 +0200

    Fix Type error in TestRail stats generator

    Change-Id: Ie4ff2f314c3b8a78b8ed963fc2f36e30d48c21c9
    Closes-bug: #1548769

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Klenov (dklenov)
tags: added: area-qa
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/8.0)

Reviewed: https://review.openstack.org/283563
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=0a8d0b3103f02b7111c45e18d4195113a5516415
Submitter: Jenkins
Branch: stable/8.0

commit 0a8d0b3103f02b7111c45e18d4195113a5516415
Author: Artem Panchenko <email address hidden>
Date: Tue Feb 23 13:26:17 2016 +0200

    Fix Type error in TestRail stats generator

    Change-Id: Ie4ff2f314c3b8a78b8ed963fc2f36e30d48c21c9
    Closes-bug: #1548769

tags: removed: non-release
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.