Skip to content

Commit

Permalink
fix: process killing
Browse files Browse the repository at this point in the history
  • Loading branch information
therightstuff committed Oct 12, 2023
1 parent 7a1949f commit e9ecf43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/test_utils/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ def kill_process(process_names: Union[str, List[str]]) -> None:


def is_process_match(command: str, process_names: List[str]) -> bool:
if len(process_names) == 1 and command == process_names[0]:
return True
if len(process_names) == 1:
command_parts = command.split(" ")
if command_parts[0] == process_names[0]:
return True
if len(process_names) > 1 and all(
[process_name in command for process_name in process_names]
):
Expand Down

0 comments on commit e9ecf43

Please sign in to comment.