Closed
Bug 521130
Opened 16 years ago
Closed 16 years ago
Add ability to set per-test timeout to mochitest
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgriffin, Assigned: jgriffin)
References
Details
Attachments
(1 file, 2 obsolete files)
5.53 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
In order to successfully run mochitest with valgrind and purify, we need the ability to set the mochitest per-test timeout dynamically. Currently, it's hardcoded to 5 minutes.
Assignee | ||
Comment 1•16 years ago
|
||
This patch adds a --timeout parameter to runtests.py, which sets the per-test timeout to the specified number of minutes. E.g., --timeout=15 to specify a 15-minute timeout.
Attachment #405168 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #405168 -
Flags: review? → review?(sayrer)
Comment 2•16 years ago
|
||
Comment on attachment 405168 [details] [diff] [review]
patch
This looks fine, except the --timeout parameter Joel added to runreftest.py in bug 471579 is in milliseconds, so we should make this one take the same units.
Attachment #405168 -
Flags: review?(sayrer) → review+
Comment 3•16 years ago
|
||
(I was looking for this because I wanted to use the timeout value in my patch on bug 501034)
Comment 4•16 years ago
|
||
Millisecond-level precision seems unwarranted here; I'd rather see seconds both places if we're interested in consistency.
Assignee | ||
Comment 5•16 years ago
|
||
Here's a patch which uses a second-based timeout for both reftest and mochitest. Ted, is there anything that depends on the reftest timeout being in ms, that would need to be changed due to this patch?
Attachment #405168 -
Attachment is obsolete: true
Attachment #406477 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 6•16 years ago
|
||
Fixed a bug in the previous patch related to the default reftest timeout
Attachment #406477 -
Attachment is obsolete: true
Attachment #406478 -
Flags: review?(ted.mielczarek)
Attachment #406477 -
Flags: review?(ted.mielczarek)
Updated•16 years ago
|
Attachment #406478 -
Flags: review?(ted.mielczarek) → review+
Comment 7•16 years ago
|
||
Comment on attachment 406478 [details] [diff] [review]
patch v3
Beats me. Ask Joel?
Assignee | ||
Comment 8•16 years ago
|
||
Joel: there's a request to change the runreftest.py timeout from ms to seconds, see patch v3 and comments #2 and #4 above. Will this cause any problems for you?
Comment 9•16 years ago
|
||
I am fine with seconds, I just need to know when we change it so I can adjust the mobile automation accordingly.
Assignee | ||
Comment 10•16 years ago
|
||
I'll plan to push it to trunk Friday morning if that's ok with you.
Assignee | ||
Comment 11•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
See Also: → 997525
You need to log in
before you can comment on or make changes to this bug.
Description
•