You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output showed the correct commit, and then it executed the correct tests where on previous attempts it ran the wrong ones. I then ran kitchen verify again without the debug flag, and it used the correct tests.
I do not know where inspec is pulling the "bad" tests from.
The text was updated successfully, but these errors were encountered:
I have Inspec tests in a git repo. In the root of the repo dir, I can run the current set of tests from local.
The tests I wrote are executed as expected.
The git log:
Awesome. This matches what I see in GitHub, and what I see when I clone this repo into another location. The remotes:
When I do this:
Some tests are executed but they are not the ones from HEAD. This also happened in Test Kitchen. What's going on here?
Describe the problem
Inspec is expected to execute tests from HEAD commit. Instead, it is executing tests from another commit or other location.
Possible Solution
I saw this originally in Test Kitchen but after some troubleshooting, I determined this happens with Inspec CLI. However, when I did this in TK
using
The output showed the correct commit, and then it executed the correct tests where on previous attempts it ran the wrong ones. I then ran kitchen verify again without the debug flag, and it used the correct tests.
I do not know where inspec is pulling the "bad" tests from.
The text was updated successfully, but these errors were encountered: