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

kcov with /bin/bash or /bin/sh #301

Open
nisbus opened this issue Jun 20, 2023 · 1 comment
Open

kcov with /bin/bash or /bin/sh #301

nisbus opened this issue Jun 20, 2023 · 1 comment

Comments

@nisbus
Copy link

nisbus commented Jun 20, 2023

-s /bin/bash --kcov:

/tmp/shellspec.1687256546.2803101/kcov/scripts [specfiles]: line 44: /tmp/shellspec.1687256546.2803101/kcov/mytests.sh: No such file or directory

Unexpected output to stderr occurred at line 10-14 in 'spec/mytests_spec.sh'

I guess this is due to the fact that I'm including the file using:

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
include ${SCRIPT_DIR}/mytests.sh

The same issue arises when I use -s /bin/sh but it works if I run -s /bin/zsh

I cannot force everyone to use zsh so any other suggestions on how to import this correctly would be appreciated

@nisbus
Copy link
Author

nisbus commented Jun 20, 2023

Actually I changed the include to just include the script name as suggested in the README with the same results

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

No branches or pull requests

1 participant