Closed
Bug 674309
Opened 14 years ago
Closed 14 years ago
Missing Import in sut_lib tools
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cmtalbert, Unassigned)
Details
Attachments
(1 file)
396 bytes,
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
There's a missing import on the sut_lib.py tool. If you don't have a - in your tegra name, you'll get a traceback noting that 'random' is not defined.
This fixes that.
Found while running installApp.py at my desk with SUT_NAME=fred
Patch attached.
Attachment #548538 -
Flags: review?(aki)
Updated•14 years ago
|
Attachment #548538 -
Flags: review?(aki) → review+
Is this something I can land any old time, or do I need to be careful as landing it could jeopardize things that are running? Granted, it's not much of a consideration on this particular issue, I'm just asking so I know in general.
Comment 2•14 years ago
|
||
normally I would say this would be safe, but if it changes some data because random actually produces something we could be hosed. Maybe we can land this in staging?
Comment 3•14 years ago
|
||
Please land whenever, it's just an import :)
This code is only hit if the environment variable SUT_NAME does not contain a dash. This should have 0 effect on our automation (we never fail out of the particular try/catch) and if we did, then we'd traceback. This patch prevents the traceback from occuring. So, at the moment, the code is broken as written. This particular catch is the only use of random in the file.
Here is the location in detail:
http://mxr.mozilla.org/build/source/tools/sut_tools/sut_lib.py#303
Pushed: http://hg.mozilla.org/build/tools/rev/dc2ba6a83adc
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•