Feat(remove dts): Remove the the use of DTS files #26
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.
PR Description
DTS files were previously used to define the following variables: tests, suites, platform, nix recipe, log and echo levels. Since the latter two variables were moved to command line options. The use of an additional file just to define effectively 3 variables, was starting to become overkill. Furthermore, in order to specify different tests and suites for different guests, would require increasing the complexity of the DTS file.
As such, we opted to move the definition of which test and suite runs on which guest to the nix recipe. Both nix recipe and platform are now passed to the framework via command line. This concentrates all configurations in a single file/recipe.
The expected command to execute the framework is:
python3 test_framework.py -recipe PATH/TO/RECIPE.nix -platform SUPPORTED_PLATFORM
And an example of a guest definition in a nix recipe: