9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] how to continue running mk target body after command failure?
@ 2011-05-05 14:01 EBo
  2011-05-05 14:08 ` andrey mirtchovski
  2011-05-05 14:17 ` roger peppe
  0 siblings, 2 replies; 4+ messages in thread
From: EBo @ 2011-05-05 14:01 UTC (permalink / raw)
  To: 9Fans-list

 I am setting up some regression testing where I expect the command to
 fail (actually that is what I am testing).  How do you force mk to
 ignore the return status of a command it is running and continue running
 the target body?

 As a note, I read through all the mk attributes and could see none that
 made sense or that I could get to work.

   EBo --




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] how to continue running mk target body after command failure?
  2011-05-05 14:01 [9fans] how to continue running mk target body after command failure? EBo
@ 2011-05-05 14:08 ` andrey mirtchovski
  2011-05-05 14:17 ` roger peppe
  1 sibling, 0 replies; 4+ messages in thread
From: andrey mirtchovski @ 2011-05-05 14:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

false || echo 'failed'

as opposed to:

true || echo 'fail'



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] how to continue running mk target body after command failure?
  2011-05-05 14:01 [9fans] how to continue running mk target body after command failure? EBo
  2011-05-05 14:08 ` andrey mirtchovski
@ 2011-05-05 14:17 ` roger peppe
  2011-05-06  3:29   ` EBo
  1 sibling, 1 reply; 4+ messages in thread
From: roger peppe @ 2011-05-05 14:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

doesn't the E attribute work for you?

On 5 May 2011 15:01, EBo <ebo@sandien.com> wrote:
> I am setting up some regression testing where I expect the command to fail
> (actually that is what I am testing).  How do you force mk to ignore the
> return status of a command it is running and continue running the target
> body?
>
> As a note, I read through all the mk attributes and could see none that made
> sense or that I could get to work.
>
>  EBo --
>
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] how to continue running mk target body after command failure?
  2011-05-05 14:17 ` roger peppe
@ 2011-05-06  3:29   ` EBo
  0 siblings, 0 replies; 4+ messages in thread
From: EBo @ 2011-05-06  3:29 UTC (permalink / raw)
  To: 9fans

 On Thu, 5 May 2011 15:17:01 +0100, roger peppe wrote:
> doesn't the E attribute work for you?

 I misunderstood the definition of recipe...  Oh well.  That work better
 than "|| echo failed..."

 Thanks

   EBo --



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-06  3:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-05 14:01 [9fans] how to continue running mk target body after command failure? EBo
2011-05-05 14:08 ` andrey mirtchovski
2011-05-05 14:17 ` roger peppe
2011-05-06  3:29   ` EBo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).