Closed Bug 1086678 Opened 11 years ago Closed 11 years ago

Guard against subsuite being None

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

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
Attachment #8508798 - Flags: review?(jmaher)
Assignee: nobody → jgriffin
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-
Thanks; updated patch.
Attachment #8508895 - Flags: review?(jmaher)
Attachment #8508798 - Attachment is obsolete: true
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+
(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)
Shouldn't we have added a unit test for this regression, which seems to be major enough?
Flags: needinfo?(jgriffin)
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)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 1087682
Blocks: 1087711
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: