diff --git a/provider/storage_benchmark.py b/provider/storage_benchmark.py index 06b71b0493..62dfaea142 100644 --- a/provider/storage_benchmark.py +++ b/provider/storage_benchmark.py @@ -134,8 +134,9 @@ def __kill_procs(self, session): :param session: vm session :type session: aexpect.client.ShellSession """ - LOG_JOB.info("Killing all %s processes by force.", self.name) - session.cmd_output(self._kill_pid % self.name, timeout=120) + proc_name = self.name if self.os_type == "linux" else f"{self.name}.exe" + LOG_JOB.info("Killing all %s processes by force.", proc_name) + session.cmd_output(self._kill_pid % proc_name, timeout=120) def __remove_env_files(self, session, timeout=300): """