Skip to content
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

Fix NO_CLUSTER usage #15

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Fix NO_CLUSTER usage #15

merged 6 commits into from
Feb 6, 2024

Conversation

pgguru
Copy link
Contributor

@pgguru pgguru commented Feb 6, 2024

Try number 2, fix test for NO_CLUSTER and other issues.

pgguru and others added 6 commits February 6, 2024 13:41
The original construct would return 1 if the `[` test failed, which due to the
`set -eu` earlier in the script would result in the whole script failing.
Change to use an `if` block which does not set the exit code accordingly, and
also avoids swallowing any error from `pg_createcluster` (vs using the `|| true`
approach).
Two bugs: we didn't interpolate the version properly, and we didn't check the
return value of the `docker run` test, so missed that that check was failing.
@theory theory merged commit 6c99248 into pgxn:main Feb 6, 2024
18 checks passed
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.

2 participants