Closed Bug 465968 Opened 17 years ago Closed 17 years ago

MailNews leak & bloat runtest.py needs to work for other apps than just Thunderbird

Categories

(MailNews Core :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b1

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files, 1 obsolete file)

I just realised that runtest.py is Thunderbird specific, we need to adapt it so it'll work with SeaMonkey as well (especially as I asked for nye to start running with runtest.py). I think the simplest way to do this, would be to pass it an extra argument we need: binary name (e.g. thunderbird or seamonkey, we know about the -bin for appending) brand name & debug (e.g. ShredderDebug, Shredder, SeaMonkey, SeaMonkeyDebug, Thunderbird, ThunderbirdDebug). I'm not sure if our buildbot configs know about these or not, but I suspect we can just hard code them into the prefs. Thoughts?
Our buildbots know about these, so it wouldn't be a problem to pass these in as arguments, i.e. $> python runtests.py --bin=thunderbird --brand=Shredder
Attached patch The fix (obsolete) — Splinter Review
Add arguments as suggested in comment 1. Note that we'll need to use 'ShredderDebug' as the argument to pass to -brand.
Assignee: nobody → bugzilla
Status: NEW → ASSIGNED
Attachment #349978 - Flags: review?(gozer)
Comment on attachment 349978 [details] [diff] [review] The fix So this becomes: $> python mailnews/[...]/runtests.py --bin=thunderbird --brand=ShredderDebug --objdir=objdir-tb ? --debug-brand maybe? There is something about brand=...Debug that's going to get me confused at some point. Also, could this default to the current behaviour (i.e. thunderbird as the default binary name) so as not to break current buildbot when this is landed ?
Attachment #349978 - Flags: review?(gozer) → review-
With debug/release options and defaulting to the current TB setup.
Attachment #349978 - Attachment is obsolete: true
Attachment #350147 - Flags: review?(gozer)
Attachment #350147 - Flags: review?(gozer) → review+
Comment on attachment 350147 [details] [diff] [review] [checked in] The fix v2 I very much like the --release option as well.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.0b1
FYI, this is a big help for SeaMonkey, but when running the script, it just opens the browser window because it doesn't pass -mail. The test seems to work with that hacked in, but I'm not sure of the best way to make that happen correctly.
adding support for some --extra-stratup-args="--mail" argument maybe ?
Adds an extra option so you can do: --extra-startup-arg="--mail" This only works for one argument. I think that's enough for now, we can extend the script later if we want more.
Attachment #350756 - Flags: review?(ajschult)
Comment on attachment 350756 [details] [diff] [review] [checked in] Add extra option r=me. looks OK for now and does work.
Attachment #350756 - Flags: review?(ajschult) → review+
Attachment #350147 - Attachment description: The fix v2 → [checked in] The fix v2
Attachment #350756 - Attachment description: Add extra option → [checked in] Add extra option
Blocks: 721357
No longer blocks: 523773
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: