On Tue, Jun 26, 2012 at 3:45 PM, Spear, Raymond (Mission Critical
Linux) <ray.sp...@hp.com> wrote:
> I have been investigating what it would take inside the autotest code to 
> return a non-0 status.
>
> Well, this is getting to be more complicated than I first thought (at least 
> for this novice).
>
> It looks like the web service which the cli connects to treats all requests 
> like "tell me about system with this pattern". So, 'host list xyz" is no 
> different than 'host list x*' which is no different than 'host list'.
>
> I suppose the cli code could special case an empty return for specific 
> systems to a non-zero status.   I don't like special cases unless they are 
> really necessary.
>
> Additionally, the calling script/program could look for an empty return and 
> handle the special case.
>
> So, I guess the code is "doing what was intended".
> ray spear

Fair enough, thanks for looking into this!

-- 
Lucas
_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to