mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
SERVER-94835 Clear cache before getting test tags in feature_flag_tags_check.py (#27564)
GitOrigin-RevId: 2d229229bf9ea0d0c4cd9422169ee2ae05d7121c
This commit is contained in:
parent
9444dac8fe
commit
69c1f9adaf
@ -44,6 +44,7 @@ def get_tests_with_feature_flag_tags(feature_flags, ent_path):
|
||||
def get_tests_missing_fcv_tag(tests):
|
||||
"""Get the list of tests missing requires FCV tag."""
|
||||
found_tests = []
|
||||
jscomment.get_tags.cache_clear()
|
||||
for test in tests:
|
||||
try:
|
||||
test_tags = jscomment.get_tags(test)
|
||||
@ -72,7 +73,6 @@ def main(diff_file, ent_path):
|
||||
tests_with_feature_flag_tag = get_tests_with_feature_flag_tags(enabled_feature_flags, ent_path)
|
||||
|
||||
_run_git_cmd(["apply", diff_file])
|
||||
_run_git_cmd(["apply", diff_file], cwd=ent_path)
|
||||
tests_missing_fcv_tag = get_tests_missing_fcv_tag(tests_with_feature_flag_tag)
|
||||
|
||||
if tests_missing_fcv_tag:
|
||||
|
Loading…
Reference in New Issue
Block a user