Closed
Bug 712437
Opened 13 years ago
Closed 13 years ago
zip_extractall should be moved to utils.py
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
Details
(Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py][mozfile])
Attachments
(1 file)
2.07 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Updated•13 years ago
|
Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py]
Reporter | ||
Updated•13 years ago
|
Whiteboard: [mozbase][good first bug][mentor=jhammel][lang=py] → [mozbase][good first bug][mentor=jhammel][lang=py][mozfile]
Comment 1•13 years ago
|
||
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.
Reporter | ||
Comment 2•13 years ago
|
||
Sure, but that may not be anytime soon. If we do start supporting 2.6+ only on talos, this can just go away
Comment 3•13 years ago
|
||
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!
Reporter | ||
Comment 5•13 years ago
|
||
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+
Comment 6•13 years ago
|
||
(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.
Reporter | ||
Comment 8•13 years ago
|
||
(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).
Reporter | ||
Comment 9•13 years ago
|
||
staged and pushed: https://bugzilla.mozilla.org/show_bug.cgi?id=712437
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•13 years ago
|
||
(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.
Description
•