Closed Bug 711660 Opened 13 years ago Closed 13 years ago

maintenance service updater tests can't be run locally

Categories

(Toolkit :: Application Update, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(1 file, 2 obsolete files)

Though the tests do run via buildbot, we need to come up with a way to run updater tests locally. At present, there are several steps that have to be performed manually.
Depends on: 711661
Attached patch patch rev1 (obsolete) — Splinter Review
KEY_WOW64_64KEY is not defined in nsWindowsRegKey so I just defined it in the JavaScript. I want to check out whether these tests are going to run on non Firefox before asking for review.
Assignee: nobody → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #582436 - Flags: review?(netzen)
Attached patch patch rev2 (obsolete) — Splinter Review
Only a slight change in that I don't think it is appropriate to check all the way down to the 0 key since the keys are enumerated.
Attachment #582436 - Attachment is obsolete: true
Attachment #582436 - Flags: review?(netzen)
Attachment #582438 - Flags: review?(netzen)
Comment on attachment 582438 [details] [diff] [review]
patch rev2

Review of attachment 582438 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for doing this, looks great.
Minor nit.

::: toolkit/mozapps/update/test/unit/head_update.js.in
@@ +460,5 @@
> + */
> +function shouldRunServiceTest() {
> +  const REG_PATH = "SOFTWARE\\Mozilla\\MaintenanceService\\" +
> +                   "3932ecacee736d366d6436db0f55bce4";
> +  const KEY_WOW64_64KEY = 256;

nit: You can use key.WOW64_64 which was added to that interface as part of bug 481815 instead.
Attachment #582438 - Flags: review?(netzen) → review+
Attached patch patch rev3Splinter Review
Also added to the function comment
* @return true if the test should run and false if it shouldn't.

Carrying forward r+
Attachment #582438 - Attachment is obsolete: true
Attachment #582442 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: