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.
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
nightly test polish #1665
nightly test polish #1665
Changes from 14 commits
9fbdc14
39958c2
1527e22
1a973fc
e19e8a2
8f4803c
0dacaf3
3d629f0
9757346
06782ac
a4f22ac
ba90e1c
e4f3f02
fa059a1
a713300
154ab2a
a025ab0
2e4506a
b67778b
137d07a
3372195
b97d4d6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there cases where this wouldn't be empty? If not, should we do
rm -r "$REGION_ROOT"
versus deleting region dirs individually?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, what I want here was something I don't think this is going to give me, and you are
right to call out what this half measure was doing.
What I want is for the caller to be able to supply a directory and have this (and any
other tests) use that directory as a place where the regions are created.
The problem arises if that directory is not empty. I don't want this test to blindly
destroy whatever exists. My half measure was to only remove directories that I
knew this tests created.
However, I now think a better solution is to, like we do with
TEST_ROOT
, is to createa specific subdirectory inside
REGION_ROOT
, and put all region directories inside that.This way I can always remove
$REGION_ROOT/<my_test_unique_subdir>
and not haveto care what is in that directory, or even know what exact directories exist inside it, which
will be a problem when I make these tests have multiple region sets.
I'll refactor this and all the places where we use
REGION_ROOT