Closed
Bug 1072554
Opened 10 years ago
Closed 10 years ago
Remove update directories when running xpcshell tests
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
General cleanup bug.
With mac v2 signing the update directory path is as follows:
~/Library/Caches/Mozilla/updates/<path to app bundle>
The test's update sub-directories under ~/Library/Caches/Mozilla/updates/ should be removed.
I will also sync the changes to getting the update directory in nsXREDirProvider.cpp to the test head_update.js file in this bug.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8494786 -
Flags: review?(spohl.mozilla.bugs)
Assignee | ||
Comment 2•10 years ago
|
||
Fixed an over 80
Attachment #8494786 -
Attachment is obsolete: true
Attachment #8494786 -
Flags: review?(spohl.mozilla.bugs)
Attachment #8494788 -
Flags: review?(spohl.mozilla.bugs)
Assignee | ||
Comment 3•10 years ago
|
||
Pushed to oak
https://hg.mozilla.org/projects/oak/rev/65326ac33f25
Comment 4•10 years ago
|
||
Comment on attachment 8494788 [details] [diff] [review]
patch rev2
Review of attachment 8494788 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great! Just one line with extra white space.
::: toolkit/mozapps/update/tests/unit_aus_update/head_update.js
@@ +959,5 @@
> }
> + if (IS_MACOSX) {
> + let updatesRootDir = gUpdatesRootDir.clone();
> + while (updatesRootDir.path != updatesDir.path) {
> + if (updatesDir.exists()) {
I did want to point out that this will be false on the first pass, since |updatesDir| was removed via |removeDirRecursive| a few lines above, but I guess we get some additional protection by first checking |updatesDir| against |updatesRootDir| before doing any further removals, so this is fine.
@@ +975,5 @@
> + }
> + }
> + updatesDir = updatesDir.parent;
> + }
> + }
nit: extra white space
Attachment #8494788 -
Flags: review?(spohl.mozilla.bugs) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8494788 -
Attachment is obsolete: true
Attachment #8494905 -
Flags: review+
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8494905 -
Attachment is obsolete: true
Attachment #8494909 -
Flags: review+
Assignee | ||
Comment 7•10 years ago
|
||
Pushed to fx-team
https://hg.mozilla.org/integration/fx-team/rev/4f0a10f05200
Comment 8•10 years ago
|
||
If you would like some extra defence-in-depth on this, it would be relatively straight forward to have puppet empty ~/Library/Caches/Mozilla/updates/ on the test slaves.
Assignee | ||
Comment 9•10 years ago
|
||
It isn't actually for defense and there would be no problems if the tests didn't do this... I just like the tests to do their best to not leave a mess and to clean up after themselves.
Comment 10•10 years ago
|
||
Oh yes, we like this too. Thanks for thinking of it.
Comment 11•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Assignee | ||
Comment 12•10 years ago
|
||
Landed on aurora in the Mac V2 signing combined patch in bug 1047584
status-firefox34:
--- → fixed
status-firefox35:
--- → fixed
Updated•10 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•