Closed Bug 521130 Opened 16 years ago Closed 16 years ago

Add ability to set per-test timeout to mochitest

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(1 file, 2 obsolete files)

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.
Attached patch patch (obsolete) — Splinter Review
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?
Attachment #405168 - Flags: review? → review?(sayrer)
Blocks: 521331
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+
(I was looking for this because I wanted to use the timeout value in my patch on bug 501034)
Millisecond-level precision seems unwarranted here; I'd rather see seconds both places if we're interested in consistency.
Attached patch patch v2 (obsolete) — Splinter Review
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)
Attached patch patch v3Splinter Review
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)
Attachment #406478 - Flags: review?(ted.mielczarek) → review+
Comment on attachment 406478 [details] [diff] [review] patch v3 Beats me. Ask Joel?
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?
I am fine with seconds, I just need to know when we change it so I can adjust the mobile automation accordingly.
I'll plan to push it to trunk Friday morning if that's ok with you.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: