<p dir="ltr">Wouldnt that mean you'd want it in gocheck itself?</p>
<p dir="ltr">John<br>
=:-></p>
<div class="gmail_quote">On Aug 2, 2013 8:21 AM, "Tim Penhey" <<a href="mailto:tim.penhey@canonical.com">tim.penhey@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 02/08/13 16:17, Ian Booth wrote:<br>
>><br>
>> testing.PatchEnvironment<br>
>><br>
>> This method sets the environment variable with the specified value, and<br>
>> returns a function that will set it back to what it was. Simply used in<br>
>> a test like this:<br>
>><br>
>> defer coretesting.PatchEnvironment(osenv.JujuLxcBridge, "br0")()<br>
>><br>
>><br>
><br>
> We have something similar in Goose. Which made me wonder what our policy is with<br>
> respect to collecting these sorts of useful utilities and packaging them so that<br>
> they are usable for more than just project X or Y individually. Even within<br>
> juju-core there's duplicated utility code to make up for Go's lack of this or<br>
> that feature. Usable errors is another example of Goose and juju-core solving<br>
> the same problem twice. There would be more as well I'm sure.<br>
><br>
> Is it worth trying to do something to package this common functionality? Or will<br>
> it be too hard due to Go's lack of dependency versioning? I really am adverse to<br>
> all the DRY violations / duplication in our collective code base.<br>
><br>
<br>
<a href="http://launchpad.net/got" target="_blank">launchpad.net/got</a> ?<br>
<br>
go t(esting)<br>
<br>
/me shrugs<br>
<br>
Makes sense to have common testing package across projects.<br>
<br>
Which would make me want to move the checkers into that too.<br>
<br>
Tim<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</blockquote></div>