diff --git a/src/mbed_os_tools/test/host_tests_plugins/module_copy_shell.py b/src/mbed_os_tools/test/host_tests_plugins/module_copy_shell.py index c5080ee43c..169c4e348d 100644 --- a/src/mbed_os_tools/test/host_tests_plugins/module_copy_shell.py +++ b/src/mbed_os_tools/test/host_tests_plugins/module_copy_shell.py @@ -74,7 +74,7 @@ def execute(self, capability, *args, **kwargs): if capability == 'shell': if os.name == 'nt': capability = 'copy' elif os.name == 'posix': capability = 'cp' - if capability == 'cp' or capability == 'copy' or capability == 'copy': + if capability == 'cp' or capability == 'copy' or capability == 'xcopy': copy_method = capability cmd = [copy_method, image_path, destination_path] if os.name == 'posix':