diff --git a/ods_ci/utils/scripts/fetch_tests.py b/ods_ci/utils/scripts/fetch_tests.py index 23fccab65..c6bcdb46c 100644 --- a/ods_ci/utils/scripts/fetch_tests.py +++ b/ods_ci/utils/scripts/fetch_tests.py @@ -60,7 +60,7 @@ def checkout_repository(ref): def get_branch(ref_to_exclude, selector_attribute): """ - List the remote branches and sort by last commit date (ASC order), exclude $ref_to_exclude and get latest + List the remote branches and sort by selector_attribute date (ASC order), exclude $ref_to_exclude and get latest """ ref_to_exclude_esc = ref_to_exclude.replace("/", r"\/") cmd = f"git branch -r --sort={selector_attribute} | grep releases/" @@ -192,8 +192,8 @@ def extract_new_test_cases(test_repo, ref_1, ref_2, ref_2_auto, selector_attribu help="Select the git attribute to use when --ref2-auto is enabled", action="store", dest="selector_attribute", - choices=["creatordate", "committerdate", "authordate"], - default="creatordate", + choices=["creatordate", "committerdate", "authordate", "taggerdate", "version:refname"], + default="version:refname", ) args = parser.parse_args()