Closed Bug 541169 Opened 14 years ago Closed 14 years ago

UnittestPackagedBuildFactory hardcodes "firefox"

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: kairo)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Blocks: 541225
Attached patch accept a productName parameter (obsolete) — Splinter Review
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 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-
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)
Attachment #422970 - Flags: review?(bhearsum) → review+
Comment on attachment 422970 [details] [diff] [review]
accept a productName parameter, v1.1

hchangeset:   587:4785b95b4155
Attachment #422970 - Flags: checked-in+
I think we can close this now.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: