From 3644146636b58747e2c590ff66b093d2f7c3f3e2 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Thu, 13 Nov 2025 23:23:12 +0100 Subject: [PATCH] fix(prepare_cluster_scripts): handle missing testnet variant Add an explicit return statement when the testnet variant is not set, ensuring the script exits with a non-zero status. This prevents further execution when required arguments are missing. --- cardano_node_tests/prepare_cluster_scripts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cardano_node_tests/prepare_cluster_scripts.py b/cardano_node_tests/prepare_cluster_scripts.py index b743ff3ba..7eb39a874 100755 --- a/cardano_node_tests/prepare_cluster_scripts.py +++ b/cardano_node_tests/prepare_cluster_scripts.py @@ -98,6 +98,7 @@ def main() -> int: testnet_variant = args.testnet_variant if not testnet_variant: LOGGER.error("The testnet variant must be set.") + return 1 if args.clean: shutil.rmtree(destdir, ignore_errors=True)