People keep writing name = 'Upgrade from x.y.z' but then it's also added by the test code which ends up in 'Upgrade from Upgrade from x.y.z'

This commit is contained in:
Alexandre Aubin 2024-01-08 19:37:01 +01:00
parent 3b76e5159a
commit e7b47542c8

View file

@ -49,6 +49,8 @@ def generate_test_list_base(test_manifest, default_install_args, is_webapp, is_m
yield test_suite_id, "upgrade", default_meta yield test_suite_id, "upgrade", default_meta
for commit, infos in test_suite.get("test_upgrade_from", {}).items(): for commit, infos in test_suite.get("test_upgrade_from", {}).items():
infos["upgrade_name"] = infos.pop("name") infos["upgrade_name"] = infos.pop("name")
if infos["upgrade_name"]:
infos["upgrade_name"] = infos["upgrade_name"].replace("Upgrade from ", "")
if "args" in infos: if "args" in infos:
infos["install_args"] = infos.pop("args") infos["install_args"] = infos.pop("args")
upgrade_meta = copy.copy(default_meta) upgrade_meta = copy.copy(default_meta)