<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 17, 2015 at 12:35 AM, Alex Jordan <span dir="ltr"><<a href="mailto:alex@strugee.net" target="_blank">alex@strugee.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Forwarding to firefox-dev, since I didn't get a reply on<br>
dev-developer-tools.<br>
<br>
-------- Forwarded Message --------<br>
Subject: Loading addons in Mochitest<br>
Date: Tue, 06 Oct 2015 18:42:34 -0700<br>
From: Alex Jordan <<a href="mailto:alex@strugee.net">alex@strugee.net</a>><br>
To: <a href="mailto:dev-developer-tools@lists.mozilla.org">dev-developer-tools@lists.mozilla.org</a><br>
<br>
Hi, all,<br>
<br>
My first Firefox patch has been bitrotting over in bug 1106353[1] for<br>
just under a year now(!) due to having incomplete tests. I'd like to<br>
finish it up and get it landed soon.<br></blockquote><div><br></div><div>I appreciate your perseverance!<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
With that in mind, can someone direct me to some documentation on how to<br>
control what addons are loaded into the test environment? A pointer to<br>
where in the tree I should poke around in would work, too. I searched a<br>
bit in DXR and asked on IRC a while ago, but never found anything.<br></blockquote><div><br></div><div>Documentation? I could laugh or cry.<br><br></div><div>This is some of the gnarliest test harness code. Start digging around <a href="https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#1350">https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#1350</a> and <a href="https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#963">https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#963</a>. IIRC, I concluded that you needed to dump built addons into a magic path in the object directory... but then I stopped staring at the belly of the beast.<br><br></div><div>Good luck!<br></div><div>Nick<br></div><div><br></div></div></div></div>