Check if build is cancellable in client

Bugzilla - https://bugzilla.redhat.com/show_bug.cgi?id=1171673
If a build is complete, cancelled, or failed, then yes, you should exit with nil.

I also spotted an error in this function - if the pod does not exist when you delete it then you should not return a failure (errors.IsNotFound).


> On Dec 9, 2014, at 11:24 AM, Maria Niță <notifications@github.com> wrote:
> 
> In hack/test-cmd.sh:
> 
> > @@ -21,6 +21,26 @@ function cleanup()
> >      echo "Complete"
> >  }
> >  
> > +# Test the cancel-build command. Since the test case is dependent
> I have a question. Here I should log the message and return nil, since we have the same behaviour in the command , right?
> 
> —
> Reply to this email directly or view it on GitHub.
>