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

tests: force use of bash for proj_add_test_script_sh #1905

Merged
merged 1 commit into from
Feb 4, 2020
Merged

tests: force use of bash for proj_add_test_script_sh #1905

merged 1 commit into from
Feb 4, 2020

Conversation

russkel
Copy link

@russkel russkel commented Feb 4, 2020

I am trying to run the tests on an Alpine Linux system that uses ash shell by default. This causes all proj_add_test_script_sh tests to error with system error -8 BAD COMMAND. Installing bash is not a problem, but this commit is required to force it to use bash.

@kbevers
Copy link
Member

kbevers commented Feb 4, 2020

Do the test scripts contain bash specifics or can we get by using sh instead? It should be available on all POSIX systems and it would be nice not to have a soft dependency on bash.

@russkel
Copy link
Author

russkel commented Feb 4, 2020

I am not too familiar with shell so I can't really comment. I think the if statements would have to be changed. I do know what you're looking at removing is called 'bashisms'.

@kbevers
Copy link
Member

kbevers commented Feb 4, 2020

It is probably safest to go with bash for now. Thanks for fixing this problem.

@kbevers kbevers added this to the 7.0.0 milestone Feb 4, 2020
@kbevers kbevers merged commit 4d0b2e9 into OSGeo:6.3 Feb 4, 2020
@russkel
Copy link
Author

russkel commented Feb 4, 2020

Pleasure, thanks for merging.

kbevers added a commit that referenced this pull request Feb 4, 2020
tests: force use of bash for proj_add_test_script_sh
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.

3 participants