Skip to content

Use bash and pipefail for tests using simple_test_driver.sh - #2083

Open
daviesrob wants to merge 1 commit into
samtools:developfrom
daviesrob:pipefail
Open

Use bash and pipefail for tests using simple_test_driver.sh#2083
daviesrob wants to merge 1 commit into
samtools:developfrom
daviesrob:pipefail

Conversation

@daviesrob

Copy link
Copy Markdown
Member

A number of tests using this infrastructure run pipelines, so really need pipefail to ensure that all stages have worked correctly. And as pipefail is not supported by all shells, the easiest way to get it is to use bash.

All scripts using simple_test_driver.sh are updated even if the tests they run don't use pipelines so they will work without needing updates should a pipeline be added in the future. As bash isn't always installed under /bin, it's also invoked directly from the Makefile so it can be found via PATH. The scripts use directly without having to remember they need bash.

A number of tests using this infrastructure run pipelines, so
really need pipefail to ensure that all stages have worked
correctly.  And as pipefail is not supported by all shells,
the easiest way to get it is to use bash.

All scripts using simple_test_driver.sh are updated even if the
tests they run don't use pipelines so they will work without
needing updates should a pipeline be added in the future.  As
bash isn't always installed under /bin, it's also invoked directly
from the Makefile so it can be found via PATH.  The scripts use
directly without having to remember they need bash.

Signed-off-by: Rob Davies <rmd+git@sanger.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant