Merge remote-tracking branch 'origin/ci-script-force-local-fix' into integration_2025_w07 (!3256)
Add check on force_local in custom_command CI handling The force_local flag was introduced earlier in the main CI script in order to run a CI test locally. The flag was still missing in the Custom_Command handling, which was still targeting the node specified in the test configuration file. This was causing a failure in the tests with custom commands and therefore limiting the scenarios that could be run locally. With this commit, if force_local is enabled the node for the Custom_Command is set to localhost.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user