diff options
author | Paul Robinson <paul.robinson@sony.com> | 2023-07-03 11:41:09 -0700 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2023-07-06 10:56:42 -0700 |
commit | c2bed2a1703a8187c231fdb2926714e877221d85 (patch) | |
tree | a6de04940e7b271f97cb41ae1fd7919b3fcbc9d2 /llvm/utils/UpdateTestChecks/common.py | |
parent | bce8c9e3d785cb99aab512698b4a1a6af5c032de (diff) | |
download | llvm-c2bed2a1703a8187c231fdb2926714e877221d85.zip llvm-c2bed2a1703a8187c231fdb2926714e877221d85.tar.gz llvm-c2bed2a1703a8187c231fdb2926714e877221d85.tar.bz2 |
[UTC] Add do-not-autogenerate capability
Differential Revision: https://reviews.llvm.org/D154383
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 81b1335..6f81805 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -327,6 +327,9 @@ def itertests( with open(test) as f: input_lines = [l.rstrip() for l in f] first_line = input_lines[0] if input_lines else "" + if UTC_AVOID in first_line: + warn("Skipping test that must not be autogenerated: " + test) + continue is_regenerate = UTC_ADVERT in first_line # If we're generating a new test, set the default version to the latest. @@ -468,6 +471,7 @@ CHECK_RE = re.compile( UTC_ARGS_KEY = "UTC_ARGS:" UTC_ARGS_CMD = re.compile(r".*" + UTC_ARGS_KEY + "\s*(?P<cmd>.*)\s*$") UTC_ADVERT = "NOTE: Assertions have been autogenerated by " +UTC_AVOID = "NOTE: Do not autogenerate" UNUSED_NOTE = "NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:" OPT_FUNCTION_RE = re.compile( |