Closed
Bug 1086678
Opened 11 years ago
Closed 11 years ago
Guard against subsuite being None
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla36
People
(Reporter: jgriffin, Assigned: jgriffin)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.29 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Mozmill is hitting an error when invoked with -t, because the subsuite ends up being None:
This fails:
> mozmill -t %test% -b %binary%
with:
> Traceback (most recent call last):
> File "/Users/andrei.eftimie/work/mozilla/env/mozmill/bin/mozmill", line 9, in <module>
> load_entry_point('mozmill==2.1-dev', 'console_scripts', 'mozmill')()
> File "/Users/andrei.eftimie/work/mozilla/mozmill/src/mozmill/mozmill/__init__.py", line 938, in cli
> CLI(args).run()
> File "/Users/andrei.eftimie/work/mozilla/mozmill/src/mozmill/mozmill/__init__.py", line 918, in run
> tests = self.manifest.active_tests(**mozinfo.info)
> File "/Users/andrei.eftimie/work/mozilla/env/mozmill/lib/python2.7/site-packages/manifestparser-0.7-py2.7.egg/manifestparser/manifestparser.py", line 1160, in active_tests
> if ',' in subsuite:
> TypeError: argument of type 'NoneType' is not iterable
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8508798 -
Flags: review?(jmaher)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jgriffin
Comment 2•11 years ago
|
||
Comment on attachment 8508798 [details] [diff] [review]
Provide a default value for subsuite,
Review of attachment 8508798 [details] [diff] [review]:
-----------------------------------------------------------------
there is a block after this that looks for subsuite:
http://dxr.mozilla.org/mozilla-central/source/testing/mozbase/manifestparser/manifestparser/manifestparser.py#1175
we should guard against it there as well.
Attachment #8508798 -
Flags: review?(jmaher) → review-
| Assignee | ||
Comment 3•11 years ago
|
||
Thanks; updated patch.
Attachment #8508895 -
Flags: review?(jmaher)
| Assignee | ||
Updated•11 years ago
|
Attachment #8508798 -
Attachment is obsolete: true
Comment 4•11 years ago
|
||
Comment on attachment 8508895 [details] [diff] [review]
Provide a default value for subsuite,
Review of attachment 8508895 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
Attachment #8508895 -
Flags: review?(jmaher) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
Target Milestone: --- → mozilla36
Backed out for lots of bustage in https://hg.mozilla.org/integration/mozilla-inbound/rev/8d62499aacc2
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=3179486&repo=mozilla-inbound
https://treeherder.mozilla.org/ui/logviewer.html#?job_id=3181336&repo=mozilla-inbound
Flags: needinfo?(jgriffin)
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #6)
> Backed out for lots of bustage in
> https://hg.mozilla.org/integration/mozilla-inbound/rev/8d62499aacc2
>
> https://treeherder.mozilla.org/ui/logviewer.
> html#?job_id=3179486&repo=mozilla-inbound
> https://treeherder.mozilla.org/ui/logviewer.
> html#?job_id=3181336&repo=mozilla-inbound
Oops, that had a syntax error. Sorry about that! I've fixed and pushed to try for good measure:
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=bc27fd947130
Flags: needinfo?(jgriffin)
| Assignee | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Shouldn't we have added a unit test for this regression, which seems to be major enough?
Updated•11 years ago
|
Flags: needinfo?(jgriffin)
Updated•11 years ago
|
Blocks: 1061982
Keywords: regression
| Assignee | ||
Comment 10•11 years ago
|
||
Yes, we should add a test for this. I didn't yesterday since it was unclear how you were hitting this, but you've explained it in bug 1056045. I'll file a separate bug for adding a test for this, since I won't have time to do it myself today.
Flags: needinfo?(jgriffin)
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•