Closed Bug 658928 Opened 13 years ago Closed 13 years ago

Use the xpcshell manifest to disable tests

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: philikon, Assigned: philikon)

References

Details

(Whiteboard: [fixed in services][qa-])

Attachments

(1 file)

xpcshell manifests (bug 616999) allow us to disable tests based on platform and other things like whether we're in a debug build or not, e.g.:

[test_foo.js]
skip-if.os = mac
skip-if.config = debug

That means we can get rid of our custom hackery in head_appinfo.js.in. \o/
That makes me so happy.
... or how I stopped worrying and love the manifests.
If there are conditions that you need that the manifest won't let you test, file a bug in Testing : XPCshell and we'll add the required functionality.
These should be a lot more usable now. Let me know if you hit any issues.
Attached patch v1Splinter Review
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #544410 - Flags: review?(rnewman)
Comment on attachment 544410 [details] [diff] [review]
v1

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

Looks good to me. A try build might be good, even considering s-c, because a try build will be a clean build... I'll settle for non-Windows platforms, though.
Attachment #544410 - Flags: review?(rnewman) → review+
(In reply to comment #4)
> These should be a lot more usable now. Let me know if you hit any issues.

Thanks Ted. This works great for us now, although it would be nice if there was a way to bypass skip-if conditions, e.g. via environment variables. See bug 669821.
http://hg.mozilla.org/mozilla-central/rev/94fe1ee0d02c
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: