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.
This commit is contained in:
Guido Casati
2025-02-12 15:40:20 +01:00
parent ff58b5e169
commit 2333cdabda
+3
View File
@@ -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)