From dc331b3958e60ab82b78988e07c4c7eb2f2e1b1d Mon Sep 17 00:00:00 2001 From: Sylvain Ribstein Date: Wed, 10 May 2023 17:08:04 +0200 Subject: [PATCH] tezt/soru: update tags and title of migration test --- tezt/tests/main.ml | 2 +- tezt/tests/sc_rollup.ml | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tezt/tests/main.ml b/tezt/tests/main.ml index 7cdff9b50e13..7aeb63eacd80 100644 --- a/tezt/tests/main.ml +++ b/tezt/tests/main.ml @@ -82,7 +82,7 @@ let register_protocol_migration_tests () = ~from_protocol:migrate_to ~to_protocol:Demo ~loser_protocols:[migrate_from] ; - Sc_rollup.register_migration ~migrate_from:Protocol.Nairobi ~migrate_to + Sc_rollup.register_migration ~migrate_from ~migrate_to (* Register tests that use [Protocol.register_test] and for which we rely on [?supports] to decide which protocols the tests should run on. diff --git a/tezt/tests/sc_rollup.ml b/tezt/tests/sc_rollup.ml index 33fa101e9048..88527e70e674 100644 --- a/tezt/tests/sc_rollup.ml +++ b/tezt/tests/sc_rollup.ml @@ -298,11 +298,19 @@ let test_l1_scenario ?regression ?hooks ~kind ?boot_sector ?commitment_period let test_l1_migration_scenario ?parameters_ty ?(src = Constant.bootstrap1.alias) ?variant ?(tags = []) ~kind ~migrate_from ~migrate_to ~scenario_prior ~scenario_after ~description () = - let tags = kind :: "migration" :: tags in + let tags = + Protocol.tag migrate_from :: Protocol.tag migrate_to :: kind :: "migration" + :: tags + in Test.register ~__FILE__ ~tags - ~title:(format_title_scenario kind {variant; tags; description}) + ~title: + (sf + "%s->%s: %s" + (Protocol.name migrate_from) + (Protocol.name migrate_to) + (format_title_scenario kind {variant; tags; description})) @@ fun () -> let* tezos_node, tezos_client = setup_l1 ~commitment_period:10 ~challenge_window:10 ~timeout:10 migrate_from -- GitLab