Closed Bug 1130268 Opened 10 years ago Closed 10 years ago

NameError: global name 'proc' is not defined in runreftest.py.

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

Similar issue in bug 1117631. https://hg.mozilla.org/mozilla-central/file/68a47aac2628/layout/tools/reftest/runreftest.py#l397 https://hg.mozilla.org/mozilla-central/file/68a47aac2628/layout/tools/reftest/runreftest.py#l403 > def killAndGetStack(self, process, utilityPath, debuggerInfo, dump_screen=False): > ... > proc.kill(sig=signal.SIGABRT) > ... > proc.kill() they should be "process".
https://hg.mozilla.org/mozilla-central/file/68a47aac2628/layout/tools/reftest/runreftest.py#l392 > printstatus(status, "crashinject") Also, this is not imported from automationutils.
renamed `proc`s to `process`s, and added `printstatus` to import. tried with a dummy timeout test case, and it seems that it killed the process correctly. https://treeherder.mozilla.org/#/jobs?repo=try&revision=eb91dc944519
Attachment #8560397 - Flags: review?(ted)
Comment on attachment 8560397 [details] [diff] [review] Fix NameErrors in killAndGetStack in runreftest.py. Review of attachment 8560397 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! Sorry about that, this is what happens when you write code using copy and paste. :-/
Attachment #8560397 - Flags: review?(ted) → review+
Assignee: nobody → arai_a
Flags: needinfo?(ted)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: