scripts: west_commands: runners: nrfutil: use x-execute-batch

execute-batch is now named x-execute-batch, as it is an experimental
option.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-03-18 10:55:53 +01:00 committed by Carles Cufí
commit 0387214bfc
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class NrfUtilBinaryRunner(NrfBinaryRunner):
self._ops = []
self._op_id = 1
self.logger.debug(f'Executing batch in: {json_file}')
self._exec(['execute-batch', '--batch-path', f'{json_file}',
self._exec(['x-execute-batch', '--batch-path', f'{json_file}',
'--serial-number', f'{self.dev_id}'])
def do_exec_op(self, op, force=False):

View file

@ -521,7 +521,7 @@ def check_expected(tool, test_case, check_fn, get_snr, tmpdir, runner_config):
# Extract filename
nrfutil_args = check_fn.call_args_list[0].args[0]
tmpfile = nrfutil_args[nrfutil_args.index('--batch-path') + 1]
cmds = (['nrfutil', '--json', 'device', 'execute-batch', '--batch-path',
cmds = (['nrfutil', '--json', 'device', 'x-execute-batch', '--batch-path',
tmpfile, '--serial-number', expected[0]],)
else:
cmds = expected