-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set pipefail for cram tests #1627
Comments
For diff --git a/.cramrc b/.cramrc
index 153d20f5..04b65851 100644
--- a/.cramrc
+++ b/.cramrc
@@ -1,3 +1,3 @@
[cram]
-shell = /bin/bash
+shell = /bin/bash -o pipefail
indent = 2 I think. |
|
I wonder if having
|
Ah, so cram wants a single executable for diff --git a/.cramrc b/.cramrc
index 153d20f5..04b65851 100644
--- a/.cramrc
+++ b/.cramrc
@@ -1,3 +1,4 @@
[cram]
shell = /bin/bash
+shell-opts = -o pipefail
indent = 2 since Other approaches like setting
|
Thanks for the alternative suggestions – I hadn't thought of those. I just updated the issue description with all the different approaches that have been proposed. I'll stick with what I've done in #1636 since it seems to be the most direct way of addressing this without getting into more sophisticated changes (e.g. patching/forking cram, enforcing |
From @tsibley in 3b50476:
Possible solutions
Roughly sorted by least to most work involved.
.cramrc
shell
(ref)shell
requires a single executable.shell-opts
(ref)set -o pipefail
SHELLOPTS=pipefail
(ref)CRAM=--shell-opts='-o pipefail'
(ref)tests/functional/setup
which can hold setup commands such as this one that doesn't require relative paths, and call it from all the individual setup scripts. This may be overkill if it's just a single command but would make it easier to add other similar commands.run_tests.sh
) and enforce usage of the wrapper instead of directly usingcram
The text was updated successfully, but these errors were encountered: