Skip to content

Add port conn params #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Add StrictHostKeyChecking=no for ssh connect
  • Loading branch information
vshepard committed Jun 6, 2024
commit da223402fa95402ce89fcf9bce8ac5df899c7951
1 change: 1 addition & 0 deletions testgres/operations/remote_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
raise ImportError("You must have psycopg2 or pg8000 modules installed")

from ..exceptions import ExecUtilException
from ..utils import reserve_port
from .os_ops import OsOperations, ConnectionParams, get_default_encoding

error_markers = [b'error', b'Permission denied', b'fatal', b'No such file or directory']
Expand Down
2 changes: 2 additions & 0 deletions testgres/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def execute_utility(args, logfile=None, verbose=False):

# write new log entry if possible
if logfile:
if not tconf.os_ops.path_exists(logfile):
tconf.os_ops.touch(logfile)
try:
tconf.os_ops.write(filename=logfile, data=args, truncate=True)
if out:
Expand Down