[tests] Functional test warnings#10197
Conversation
d85ae2a to
3fd09cb
Compare
test/functional/test_runner.py
Outdated
There was a problem hiding this comment.
I'd prefer to keep this an error, so that a failing travis will quickly tell the author of a new script that it is not being run.
There was a problem hiding this comment.
Maybe make this warning an error on travis?
if os.getenv('TRAVIS')=='true':
# On travis this warning is an error to prevent merging incomplete commits into master
sys.exit(1)|
utACK 3fd09cb beside the comment |
|
@MarcoFalke I've found the error-and-exit behaviour annoying and intrusive since we introduced it. I'm often working on test cases outside a git repository and either want to add a new test case or modify an existing test case and keep a backup in the same directory (my exact setup is that I'm using rsync to copy my git repo into a directory on a VM, and old files don't automatically get deleted when I checkout a new branch and rsync it to the VM). The fact that test_runner fails to run when it detects a new file in the directory is annoying. Remember that the point of this check is so new test cases don't get added to the repo without being added to test_runner. Only one person needs to notice that the warning is being raised either locally or on Travis for it to have done its job. For that, a warning should be enough. |
|
@jnewbery Sounds reasonable. |
test/functional/test_runner.py
Outdated
There was a problem hiding this comment.
except (OSError, subprocess.SubprocessError):should be enough?
test/functional/test_runner.py
Outdated
There was a problem hiding this comment.
Maybe make this warning an error on travis?
if os.getenv('TRAVIS')=='true':
# On travis this warning is an error to prevent merging incomplete commits into master
sys.exit(1)3fd09cb to
08e51c1
Compare
|
Addressed @MarcoFalke's nits |
|
If a MacOS user installs |
Certainly! PRs welcome 🙂 |
Two changes:
Rebuilding the cache takes about 21 seconds on my pc. This will be reduced to just under 2 seconds once #10082 has been fully merged.