Closed Bug 874625 Opened 12 years ago Closed 11 years ago

Use MozbuildObject to get default paths in automation.py

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file)

With the patch in bug 855262, we can get default objdir/srcdir paths without having to preprocess them into automation.py. I think with this + mozinfo we can remove all the preprocessing from automation.py, which is a prerequisite to moving everything off of automation.py.
ahal: the method in this patch is what I was suggesting on IRC that you could use.
Depends on: 855262
Comment on attachment 752376 [details] [diff] [review] Use MozbuildObject to get default paths in automation.py Review of attachment 752376 [details] [diff] [review]: ----------------------------------------------------------------- In some ways, I wonder why we still need these in here? In automation, we run with full cli flags to specify these values, can't we just hardcode that cli stuff into the mach/make target so we don't have to worry? ::: build/automation.py.in @@ +74,5 @@ > > +try: > + # If we're running from an objdir, we can get defaults for paths. > + from mozbuild.base import MozbuildObject > + o = MozbuildObject.from_environment() a variable named o could use a better name, maybe mozbuild or mozBuildObj ?
Attachment #752376 - Flags: review?(jmaher) → review+
(In reply to Joel Maher (:jmaher) from comment #3) > In some ways, I wonder why we still need these in here? In automation, we > run with full cli flags to specify these values, can't we just hardcode that > cli stuff into the mach/make target so we don't have to worry? I agree, and I think this is the direction we should go. Getting the defaults from makefile targets is sort of a pain, so I don't think we'll get there until we only support two ways of running the tests: via mach commands and by explicitly specifying all the necessary parameters (like we do on the test slaves).
We're just ditching automation.py instead.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: