-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, generating the list of preflight checks used by CleanUpHost/SetupHost and StartPreflightChecks is quite convoluted. We have multiple Check[] arrays, which are picked or not depending on various parameters (distro, network mode, experimental, ...). When adding a new check, one needs to take all of this into account before their check is used at the expected time. This patch introduces a new API which uses the labels added to each individual Check definition. getAllPreflightChecks/getPreflightChecks will then be modified to make use of it, and automatically select the tests which should be used depending on the labels which are set.
- Loading branch information
1 parent
1ef71c9
commit 668a0cb
Showing
4 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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