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

Use only defined paths if specified (Fixes #216) #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shoekstra
Copy link

In reference to #216, this would be option 2 where default test directory is ignored if test paths are specified using inspec_tests.

@zenspider zenspider added the Type: Bug Doesn't work as expected. label Oct 14, 2019
@james-stocks
Copy link

This change looks beneficial but I'd wonder if any users are depending on the current odd behaviour, and would start to see their executed test suite be reduced after this merges.
Maybe we'd need to wait for a version boundary to make the change; or maybe we just need to document it very clearly.

# get local tests and get run list of profiles
(local_suite_files + resolve_config_inspec_tests).compact.uniq
# get run list of profiles or fall back to local tests
return resolve_config_inspec_tests.uniq if resolve_config_inspec_tests

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like resolve_config_inspec_tests will always return an array and the if condition will always be true, making the next line unreachable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Doesn't work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants