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

Add test coverage of compound bash commands #234

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jul 2, 2024

The Procfile format supports specifying compound bash commands like:

web: foo && bar

This buildpack currently supports these, however, there is no integration test coverage of them.

Having coverage is important, since some of the approaches for implementing the bash -c wrapping don't support usage of compound commands, as seen in:
#150 (comment)

As such I've added a new integration test for this, which also tests quoting (in case a future buildpack implementation starts trying to parse/escape the commands) and variable interpolation.

This test case was extracted from #150 (which itself was superseded).

GUS-W-16148705.

The `Procfile` format supports specifying compound bash
commands like:

```
web: foo && bar
```

This buildpack currently supports these, however, there is no
integration test coverage of them.

Having coverage is important, since some of the approaches
for implementing the `bash -c` wrapping don't support usage
of compound commands, as seen in:
#150 (comment)

This test case was extracted from #150 (which itself was superseded).

As such I've added a new integration test for this, which also tests
quoting (in case a future buildpack implementation starts trying to
parse/escape the commands) and variable interpolation.
@edmorley edmorley self-assigned this Jul 2, 2024
@edmorley edmorley marked this pull request as ready for review July 2, 2024 11:56
@edmorley edmorley requested a review from a team as a code owner July 2, 2024 11:56
@edmorley edmorley enabled auto-merge (squash) July 2, 2024 11:56
@edmorley edmorley merged commit 0d99e3b into main Jul 2, 2024
5 checks passed
@edmorley edmorley deleted the edmorley/complex-command-test branch July 2, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants