Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove usage of not standard nc in remote_ops.py is_port_free
  • Loading branch information
vshepard committed Aug 14, 2025
commit dca1f74e81905a6857e53dc59e21ca686e09d8ae
3 changes: 2 additions & 1 deletion testgres/operations/remote_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import logging
import typing
import copy
import socket

from ..exceptions import ExecUtilException
from ..exceptions import InvalidOperationException
Expand Down Expand Up @@ -685,7 +686,7 @@ def is_port_free(self, number: int) -> bool:
port_hex = format(number, '04X')

# Search /proc/net/tcp and tcp6 for any entry with this port
cmd = ['/bin/bash', '-lc',
cmd = ['/bin/bash', '-c',
f"grep -q ':{port_hex} ' /proc/net/tcp /proc/net/tcp6"]

exit_status, output, error = self.exec_command(
Expand Down