Open Bug 852207 Opened 7 years ago Updated 4 years ago

provide platform information (mozinfo) to tests in a nice format.

Categories

(Testing :: Mozbase, defect)

defect
Not set

Tracking

(Not tracked)

People

(Reporter: tbsaunde, Assigned: hiro)

References

Details

(Whiteboard: [mozbase])

Attachments

(1 file)

currently when tests need to do things specific to one  OS / OS version /debug or not people have to do anoying things like navigator.oscpu.startsWith("blah") which sucks, ted and jhammel think we could use mozinfo.json to make this nicer.
Summary: provide platform information to tests in a nice format. → provide platform information (mozinfo) to tests in a nice format.
Whiteboard: [mozbase]
Component: General → Mozbase
QA Contact: hskupin
Could you please explain this better?
I'm a bit unclear myself.  We're trying to add useful data to mozinfo;  what is to be added?
I guess the summary wasn't clear here, the proposal was to make mozinfo available to the *JavaScript* bits of our test harnesses, so that in a Mochitest you could simply say if (mozinfo.os == "windows") { ... }

We currently have mozinfo available in the xpcshell Python harness (but not the JS part), so maybe that'd be an easy first target?
Blocks: 1150818
This patch output mozinfo as it is.
The output mozinfo does not completely match mozinfo.json in topobjdir because mozinfo.py updates its contents.
Assignee: nobody → hiikezoe
Blocks: 1153126
Blocks: 1153128
Comment on attachment 8590667 [details] [diff] [review]
Output mozinfo into a file as is

Forgot to set review request.
Attachment #8590667 - Flags: review?(ahalberstadt)
Comment on attachment 8590667 [details] [diff] [review]
Output mozinfo into a file as is

Review of attachment 8590667 [details] [diff] [review]:
-----------------------------------------------------------------

I don't think this patch is related to this bug. If there is a missing feature you need in mozinfo, could you file a new bug please? That being said, I don't think this is something we need. It's easy enough for consumers to dump mozinfo.info to a file on their own if they need to.
Attachment #8590667 - Flags: review?(ahalberstadt) → review-
No longer blocks: 1150818
No longer blocks: 1153126
You need to log in before you can comment on or make changes to this bug.