Repository navigation
test: make such that -init used on ./test.py re-create the init file only for the first variant to be executed - #427
Open
svalat wants to merge 1 commit into
Conversation
… only for the first config to be executed
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Up to now we needed to regenerate the references for the tests via the
testme.pyfiles via:cd test/MHD/sod/ ./testme.py -initIn principle it is also possible the generate them with the
testme.jsonviaTo be safer in the second case, we don't want to regenerate several time the dump for the MPI / reconstruction.... variants but only for the first variant (default). And most important what we want to keep if the first one (default) not the last one (variant).
The patch takes the reference file name generated for the given test a a uniq key to check if it has already been done during the current run.
Note: in any case there is still the safety question to the user if it overrides an existing reference.
Note: it doesn't prevent the variants to run, but they will just run in validation mode after the generation of the reference by the first variant executed.
Feel free to see if it looks useful or if we should just forbid
-initvia thetestme.json.