From 2333cdabdacd57d3a97a5080231ac7caeca5b959 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Wed, 12 Feb 2025 15:18:00 +0100 Subject: [PATCH] Add check on force_local in custom_command handling * The force_local flag was introduced earlier in the main CI script in order to run a CI test locally. The flag was missing in the Custom_Command handling, which was still targeting the node specified in the test configuration file. With this commit, if force_local is enabled the node for the Custom_Command is set to localhost. --- ci-scripts/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci-scripts/main.py b/ci-scripts/main.py index 7a625eaa7d..cafcb24313 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -406,6 +406,9 @@ def ExecuteActionWithParam(action): elif action == 'Custom_Command': node = test.findtext('node') + if force_local: + # Change all execution targets to localhost + node = 'localhost' command = test.findtext('command') command_fail = test.findtext('command_fail') in ['True', 'true', 'Yes', 'yes'] success = cls_oaicitest.Custom_Command(HTML, node, command, command_fail)