Closed Bug 712437 Opened 13 years ago Closed 13 years ago

zip_extractall should be moved to utils.py

Categories

(Testing :: Talos, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

Details

(Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py][mozfile])

Attachments

(1 file)

http://hg.mozilla.org/build/talos/file/fd70c47121be/talos/ffsetup.py#l62

zip_extractall (for legacy compatability) arbitrarily lives in
ffsetup.py.  It should probably live in utils.py.  Or, better, it
could be put in a yet-to-be-created mozfile:
https://wiki.mozilla.org/Auto-tools/Projects/MozBase#shared_with_mozharness
Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py]
Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py] → [mozbase][good first bug][mentor=jhammel][lang=py][mozfile]
Note that this method is really only needed so long as we need compatibility with python < 2.6. Python 2.6's zipfile has a built-in extractall() method which does what we want.
Sure, but that may not be anytime soon.  If we do start supporting 2.6+ only on talos, this can just go away
Moved function zip_extractall from ffsetup.py to utils.py

Added a "from utils import zip_extractall" in ffsetup
Attachment #583869 - Flags: review?(jhammel)
(In reply to ckvk from comment #3)
> Created attachment 583869 [details] [diff] [review]
> Diff file after moving zip_extractall from ffsetup.py to utils.py
> 
> Moved function zip_extractall from ffsetup.py to utils.py
> 
> Added a "from utils import zip_extractall" in ffsetup

Thanks for the patch!
Comment on attachment 583869 [details] [diff] [review]
Diff file after moving zip_extractall from ffsetup.py to utils.py

looks good! Did you test this?  Guessing it should still be run through staging, etc.
Attachment #583869 - Flags: review?(jhammel) → review+
(In reply to Jeff Hammel [:jhammel] from comment #5)

> looks good! Did you test this?  Guessing it should still be run through
> staging, etc.

Yeah, jhammel. I configured and ran Talos for the ts test. It passed the tests.
Jeff can we get this staged and landed this week?
(In reply to Clint Talbert ( :ctalbert ) from comment #7)
> Jeff can we get this staged and landed this week?

Yep, that is doable.  I will try the changes tomorrow (have been having trouble getting access to the staging box from home).
staged and pushed: https://bugzilla.mozilla.org/show_bug.cgi?id=712437
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
(In reply to Jeff Hammel [:jhammel] from comment #9)
> staged and pushed: https://bugzilla.mozilla.org/show_bug.cgi?id=712437

Sorry, the URL is supposed to be http://hg.mozilla.org/build/talos/rev/1863e1f6cb62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: