--
You received this message because you are subscribed to the Google Groups "drake-workflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drake-workflo...@googlegroups.com.
Visit this group at http://groups.google.com/group/drake-workflow.
For more options, visit https://groups.google.com/d/optout.
Isn't this behaviour happening because Drake executes all of the commands for a given step in a single script?
artem:~$ cat>test.sh
echo hey there
false
artem:~$ bash test.sh || echo failure
hey there
failure
I am working around it using things like this in my steps:some-command-that-can-fail || { echo "command failed" && exit 1; }
or for stderr instead of stdout:some-command-that-can-fail || { >&2 echo "command failed" && exit 1; }Of course this doesn't look nice when used on every command in a step..
On Friday, 6 March 2015 01:36:10 UTC, Koert Kuipers wrote:$ more Drakefile
a.out <-
echo "running a" > $OUTPUT
b.out <- a.out
blech
echo "running b" > $OUTPUT
$ drake
The following steps will be run, in order:
1: /home/koert/tmp/test_project/././a.out <- [missing output]
2: /home/koert/tmp/test_project/././b.out <- /home/koert/tmp/test_project/././a.out [projected timestamped]
Confirm? [y/n] y
Running 2 steps with concurrence of 1...
--- 0. Running (missing output): /home/koert/tmp/test_project/././a.out <-
--- 0: /home/koert/tmp/test_project/././a.out <- -> done in 0.02s
--- 1. Running (missing output): /home/koert/tmp/test_project/././b.out <- /home/koert/tmp/test_project/././a.out
.drake/shell-11112bcfb7e7fe47a36f6dca55491dc5.bat: line 1: blech: command not found
--- 1: /home/koert/tmp/test_project/././b.out <- /home/koert/tmp/test_project/././a.out -> done in 0.02s
Done (2 steps run).On Thu, Mar 5, 2015 at 8:30 PM, Alan Malloy <al...@factual.com> wrote:Yeah if one command in a step fails, the whole step should fail. If we don't already do that that's super-bad IMO.
--
You received this message because you are subscribed to the Google Groups "drake-workflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drake-workflo...@googlegroups.com.
Visit this group at http://groups.google.com/group/drake-workflow.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "drake-workflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drake-workflo...@googlegroups.com.
Visit this group at http://groups.google.com/group/drake-workflow.
For more options, visit https://groups.google.com/d/optout.