-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make python tests not executables #5449
Make python tests not executables #5449
Conversation
Turns out that if a `test_*.py` file is executable, nosetests doesn't pick it up, so the tests are not executed on Linux/Mac. This was the case with two files in Filebeat. This adds a `make check` check to look for such files, so this doesn't happen in the future.
I opened this separately from #5443 so we can backport it immediately to the 6.0 branch. |
|
man find (on Linux)
These work on Linux but not on macOS. hmm
|
|
That test seems stable on my computer, so I'm pretty clueless on why it might fail on Travis only. |
No, I spoke to soon. The test is flaky and I could get it to fail on my laptop when running it in a loop. |
I opened #5458 for the flaky test. |
I skipped the flaky test, we have #5458 to track that. |
jenkins, test it |
* Make python tests not executables Turns out that if a `test_*.py` file is executable, nosetests doesn't pick it up, so the tests are not executed on Linux/Mac. This was the case with two files in Filebeat. This adds a `make check` check to look for such files, so this doesn't happen in the future. (cherry picked from commit b8b7f8a)
* Make python tests not executables Turns out that if a `test_*.py` file is executable, nosetests doesn't pick it up, so the tests are not executed on Linux/Mac. This was the case with two files in Filebeat. This adds a `make check` check to look for such files, so this doesn't happen in the future. (cherry picked from commit b8b7f8a)
* Make python tests not executables Turns out that if a `test_*.py` file is executable, nosetests doesn't pick it up, so the tests are not executed on Linux/Mac. This was the case with two files in Filebeat. This adds a `make check` check to look for such files, so this doesn't happen in the future. (cherry picked from commit baa09e8)
Turns out that if a
test_*.py
file is executable, nosetestsdoesn't pick it up, so the tests are not executed on Linux/Mac.
This was the case with two files in Filebeat.
This adds a
make check
check to look for such files, so thisdoesn't happen in the future.