Fix iris-test-data skips in Travis testing. #2972
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It turns out that all tests using iris-test-data have been skipping for a while
-- as in all the visible log messages "SKIP: Tests(s) require external data."
-- e.g. : https://travis-ci.org/SciTools/iris/jobs/341527576#L3747
This is in fact since 8a327b4,
However, I'm bafflled as to why
The existing code in
.travis.ymlseems definitely wrong, because it createssite.cfgin the local directory, which is not the iris installation.I'm currently at a loss to explain how
iris.configpreviously managed to find the test data ??Anyway,
proposed here is to put the 'site.cfg' into the installation, which should fix it.Make test data available via
OVERRIDE_TEST_DATA_REPOSITORYenvironment variable.NOTE:
This won't fix all the existing test failures, due to the failure of
iris.tests.check_graphic.In fact, there will be a whole lot more of them ...