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 error report in ctest when calling bash script #434

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

FabienPean
Copy link
Contributor

@FabienPean FabienPean commented Aug 22, 2023

To stop on first error, the cmake test should be called either as COMMAND ${BASH_PROGRAM} -eu arpackmm.sh or COMMAND arpackmm.sh. Calling bash onto the script file in ctest skips the shebang line of the script (which contains #!/bin/bash -eu). See #433 for the proof.

I used the former explicit version to avoid problem if the file is not executable

@fghoussen fghoussen merged commit bdb881c into opencollab:master Sep 3, 2023
11 checks passed
@FabienPean FabienPean deleted the fix/cmake-test-report branch September 13, 2023 19:16
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