Closed
Bug 541169
Opened 14 years ago
Closed 14 years ago
UnittestPackagedBuildFactory hardcodes "firefox"
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kairo, Assigned: kairo)
References
Details
Attachments
(1 file, 1 obsolete file)
2.71 KB,
patch
|
bhearsum
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
UnittestPackagedBuildFactory currently hardcodes "firefox" as (parts of) the binary and path names, but if we want to be able to use it for different products, we need to be able to hand in different product names.
Assignee | ||
Comment 1•14 years ago
|
||
This patch makes UnittestPackagedBuildFactory accept a productName parameter and default back to 'firefox' if it is not passed, so things should degrade easily.
Attachment #422843 -
Flags: review?(bhearsum)
Comment 2•14 years ago
|
||
Comment on attachment 422843 [details] [diff] [review] accept a productName parameter >diff --git a/process/factory.py b/process/factory.py > self.env = MozillaEnvironments['%s-unittest' % self.platform].copy() > self.env['MINIDUMP_STACKWALK'] = getPlatformMinidumpPath(self.platform) > self.env.update(env) >+ self.productName = productName or 'firefox' Just set the default the __init__ signature. This technique is only necessary for things like lists or dicts which have shared reference issues. Looks fine otherwise.
Attachment #422843 -
Flags: review?(bhearsum) → review-
Assignee | ||
Comment 3•14 years ago
|
||
Right, how could I forget to do things that way - I guess it's been too long since I did more serious buildbot stuff... ;-) Here's the updated patch.
Attachment #422843 -
Attachment is obsolete: true
Attachment #422970 -
Flags: review?(bhearsum)
Updated•14 years ago
|
Attachment #422970 -
Flags: review?(bhearsum) → review+
Comment 4•14 years ago
|
||
Comment on attachment 422970 [details] [diff] [review] accept a productName parameter, v1.1 hchangeset: 587:4785b95b4155
Attachment #422970 -
Flags: checked-in+
Comment 5•14 years ago
|
||
I think we can close this now.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•