diff options
author | Aaron Massey <aaronmassey@google.com> | 2022-09-26 14:42:32 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-27 17:03:58 +0000 |
commit | f20e37edf6fb679fb7c9752aac9b8f7c557cd0ad (patch) | |
tree | 6869c73f6b55f71f3206601ac7561987d3cf6cba /PRESUBMIT.cfg | |
parent | 819c9323930cfd9b5e626a7ec94fbb0ea02273c7 (diff) | |
download | chrome-ec-f20e37edf6fb679fb7c9752aac9b8f7c557cd0ad.tar.gz |
util: Add a twister test tag validation script
While completing higher code coverage on herobrine, it has become
advantageous to create small hermetic tests to facilitate verifying
various enabled configs and faking of global functions. Twister test
tags are a way to group run many small tests together without them being
in the same directory.
Add twister_tags.py which contains a mapping of tag to description and
performs a presubmit check validating that all test tags in use have
been described.
BRANCH=none
BUG=b:249146559
TEST=repo upload with test commit
TEST=repo upload without test commit
TEST=util/twister_tags.py -l --validate-files
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I3ec2aea239efe474b893d7d11e24bd4b10f3c0c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3919499
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'PRESUBMIT.cfg')
-rw-r--r-- | PRESUBMIT.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/PRESUBMIT.cfg b/PRESUBMIT.cfg index 3aabbe3bb3..c42cb7d9b9 100644 --- a/PRESUBMIT.cfg +++ b/PRESUBMIT.cfg @@ -32,3 +32,4 @@ config_option_check = util/config_option_check.py host_command_check = util/host_command_check.sh ec_commands_h = util/linux_ec_commands_h_check.sh migrated_files = util/migrated_files.sh ${PRESUBMIT_FILES} +twister_test_tags = util/twister_tags.py --validate-files ${PRESUBMIT_FILES} |