Closed Bug 555585 Opened 14 years ago Closed 14 years ago

[test] Remove Litmus meta data from Mozmill tests

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(2 files, 6 obsolete files)

We put the Litmus meta data into all of our tests because we wanted to sync the results from Brasstacks with Litmus. Seeing the reality we will never have such a script. No-one will have time to work on it. Also when we have a green test-run we could simply use a bookmarklet on Litmus to automatically mark all the tests as passed. That should be a trivial task.

The work which is required from us to keep track of the Litmus id in our tests doesn't correlate to it's usefulness. That's why we wanna remove those lines from all tests in the default and mozilla1.9.1 branch. 

Is anyone familiar with sed and can create a helpful regex to remove those lines automatically? 

This is an example:

> /**
>  * Map test functions to litmus tests
>  */
> testPermissionsDisabled.meta = {litmusids : [7397]};
Assigning to myself.  I spoke with Matt about this and he actually just wants the lines commented out.  This will be a lot easier than removing the 4 lines. :)
Assignee: nobody → anthony.s.hughes
After some research, I've come up with the following command:
grep -B 1 -A 2 -lr -e 'litmusids : ' ./firefox | xargs sed -i '$s/^/\/\/ /g'

Patch forthcoming.
Attached patch Patch (obsolete) — Splinter Review
Attachment #436247 - Flags: review?(hskupin)
Comment on attachment 436247 [details] [diff] [review]
Patch

Nevermind...this patch fails a couple of tests...

Time to tweak
Attachment #436247 - Flags: review?(hskupin) → review-
Please also keep in mind that we have multiple lines in some tests.
Attached patch Patch (1.9.1) (obsolete) — Splinter Review
Attachment #436247 - Attachment is obsolete: true
Attachment #436255 - Flags: review?(hskupin)
Attached patch Patch (obsolete) — Splinter Review
Attached patch Patch (default) (obsolete) — Splinter Review
Attachment #436256 - Attachment is obsolete: true
Attachment #436259 - Flags: review?(hskupin)
Attached patch Patch (default) (obsolete) — Splinter Review
Attachment #436259 - Attachment is obsolete: true
Attachment #436261 - Flags: review?(hskupin)
Attachment #436259 - Flags: review?(hskupin)
Attached patch Patch (1.9.1) (obsolete) — Splinter Review
Attachment #436255 - Attachment is obsolete: true
Attachment #436268 - Flags: review?(hskupin)
Attachment #436255 - Flags: review?(hskupin)
We should target that patch for beginning next week. I would propose Monday. Anthony, if you could update both patches by Monday it would be perfect. Thanks.
Status: NEW → ASSIGNED
Reassigning to Henrik for follow-up work.  I have fever and will not be able to finish this by tomorrow.
Assignee: anthony.s.hughes → hskupin
Attachment #436261 - Attachment is obsolete: true
Attachment #436261 - Flags: review?(hskupin)
Attachment #436268 - Attachment is obsolete: true
Attachment #436268 - Flags: review?(hskupin)
This patch depends on the work for the Addons API. So please apply on top of it for testing purposes.
Attachment #441589 - Flags: review?(anthony.s.hughes)
Attachment #441591 - Flags: review?(anthony.s.hughes)
Attachment #441589 - Flags: review?(anthony.s.hughes) → review+
Attachment #441591 - Flags: review?(anthony.s.hughes) → review+
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/9fe002fe2778
http://hg.mozilla.org/qa/mozmill-tests/rev/711fe8fa2363
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: