From 152c13baba99f791f64cddce90613309549be347 Mon Sep 17 00:00:00 2001 From: Julien Sagot Date: Mon, 26 May 2025 15:17:17 +0200 Subject: [PATCH] Proto_manager: add the Protocol.directory case after the existing ones. Proto_manager used to add the corresponding line before the line where source is defined, but it broke the script in the case where the whole function definition stand on one line, and the added case was merged with the number functions cases. --- scripts/proto_manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/proto_manager.sh b/scripts/proto_manager.sh index 55e3b7fbac5c..040b46db28e0 100755 --- a/scripts/proto_manager.sh +++ b/scripts/proto_manager.sh @@ -1102,7 +1102,7 @@ function update_tezt_tests() { else sed -r 's/(.*) '${capitalized_source}' -> ([0-9][0-9][0-9])/printf "\1 '${capitalized_label}' -> \2 | '${capitalized_source}' -> %03i" "$(echo \2+1 | bc)"/ge' -i.old tezt/lib_tezos/protocol.ml fi - sed "/| ${capitalized_source} -> \"proto_${protocol_source}\"/i | ${capitalized_label} -> \"proto_${label}\"\n" -i.old tezt/lib_tezos/protocol.ml + sed "/| ${capitalized_source} -> \"proto_${protocol_source}\"/a | ${capitalized_label} -> \"proto_${label}\"\n" -i.old tezt/lib_tezos/protocol.ml # add $(capitalized_label) -> "$long_hash" before "(* DO NOT REMOVE, AUTOMATICALLY ADD STABILISED PROTOCOL HASH HERE *)" sed "/\(\* DO NOT REMOVE, AUTOMATICALLY ADD STABILISED PROTOCOL HASH HERE \*\)/i \ | ${capitalized_label} -> \"${long_hash}\"" -i.old tezt/lib_tezos/protocol.ml -- GitLab