Closed Bug 1062518 Opened 5 years ago Closed 5 years ago

mach python-test broken for relative paths

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
mozilla35

People

(Reporter: tomasz, Assigned: froydnj)

Details

Attachments

(1 file)

Repro:

1. cd $MOZ/python/mozbuild/mozbuild/test
2. mach python-test test_base.py

The following command works just fine:
mach python-test $(pwd)/test_base.py
Assignee: nobody → nfroyd
Reason:

http://hg.mozilla.org/mozilla-central/file/e58842c764dd/python/mach_commands.py#l66

Pretty much the same as in bug 1057453. If argument is not absolute then it's relative to pwd. We should have some global helper function for that.
The patch looks large, but that's mostly due to re-indenting lines.
Attachment #8489504 - Flags: review?(mshal)
Attachment #8489504 - Flags: review?(mshal) → review+
https://hg.mozilla.org/mozilla-central/rev/d3333ee24739
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Flags: qe-verify-
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.