Merge lp:~sbaldassin/qakit/fix_qakit_bug into lp:qakit

Proposed by Santiago Baldassin
Status: Merged
Approved by: Santiago Baldassin
Approved revision: 197
Merged at revision: 197
Proposed branch: lp:~sbaldassin/qakit/fix_qakit_bug
Merge into: lp:qakit
Diff against target: 17 lines (+3/-3)
1 file modified
qakit/ust/worker.py (+3/-3)
To merge this branch: bzr merge lp:~sbaldassin/qakit/fix_qakit_bug
Reviewer Review Type Date Requested Status
Canonical Platform QA Team Pending
Review via email: mp+308702@code.launchpad.net

Commit message

Minor fix for when the packages are not mapped

Description of the change

minor fix for when the packages are not mapped

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qakit/ust/worker.py'
2--- qakit/ust/worker.py 2016-09-15 19:32:05 +0000
3+++ qakit/ust/worker.py 2016-10-18 08:45:41 +0000
4@@ -72,10 +72,10 @@
5 pt = PractitestSession(self.conf.parser.get('practitest', 'project_id'),
6 self.conf.parser.get('practitest', 'api_key'),
7 self.conf.parser.get('practitest', 'api_secret_key'))
8- filters = pt.get_filters_for_src_pkgs(packages)
9- tests = pt.get_tests(filters)
10+ try:
11+ filters = pt.get_filters_for_src_pkgs(packages)
12+ tests = pt.get_tests(filters)
13
14- try:
15 tests_ids = ' '.join([test['___f_10589']['value'] for test in tests])
16 except KeyError:
17 tests_ids = ' '

Subscribers

People subscribed via source and target branches