Yea yea, I know don&#39;t use global variables. I am just throwing stuff around, ideas tend to spawn other ideas for me.<br><br>Will mess around with it some more this weekend.<br><br><br><br>Thanks,<br>  Max<br><br><div class="gmail_quote">
On Sat, Apr 17, 2010 at 3:06 PM, C. Titus Brown <span dir="ltr">&lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, Apr 17, 2010 at 02:47:36PM -0400, Max Laite wrote:<br>
&gt; The bug, which is cause of missing &#39;=&#39; , should of been fixed in one the<br>
&gt; more recent pushes. Ah, its fixed in my initial stab at context failure<br>
&gt; push.<br>
<br>
</div>OK.  I&#39;m having a tough time figuring out what branches of yours to<br>
look to (because of some github UI fail) so please be explicit and<br>
point to not just commits but branches.  Communication =&gt; good :)<br>
<br>
[ ... ]<br>
<div class="im"><br>
&gt; However.....With Virtualenv we have to catch the error before it even jumps<br>
&gt; into the &quot;for c in commands:&quot; All the Dependencies are done during the<br>
&gt; following call in do()<br>
&gt; if context:<br>
&gt;         context.initialize()<br>
<br>
</div>Yes, you have to put error checking there as well as in the for loop.<br>
<div class="im"><br>
&gt; I originally tried doing the break in the for loop but it would never work<br>
&gt; how expected. Putting a failure in the for loop will only take care of build<br>
&gt; command errors (checkout,build,test)<br>
<br>
</div>Exactly, you want to take care of both.<br>
<div class="im"><br>
&gt; This is still with global variable but want through out the general<br>
&gt; idea.....So what if we just put the &quot;for c in commands:&quot; inside an<br>
&gt; if....so....... if not error_state do the for loop.....So then that would<br>
&gt; take out all that redundancy and would skip to all the other steps if the<br>
&gt; test passes....<br>
<br>
</div>Well, you need a try/except in the loop anyway to catch raised exceptions<br>
from build commands, which aren&#39;t currently handled...<br>
<br>
Tell ya what -- here are some tests.  (branch &#39;tests_for_max&#39;)<br>
<br>
  <a href="http://github.com/ctb/pony-build/blob/tests_for_max/client/test_client/test_context.py" target="_blank">http://github.com/ctb/pony-build/blob/tests_for_max/client/test_client/test_context.py</a><br>
<br>
Merge these in to your context failure code and get them all to work<br>
(feel free to change the tests, of course, but there&#39;s only one place<br>
where I think you&#39;ll need to).<br>
<br>
And, not to threaten, but if you continue to use global variables I will break<br>
your knees or something.  Bad Max.<br>
<br>
cheers,<br>
<font color="#888888">--titus<br>
</font></blockquote></div><br>