Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit da22340

Browse files
author
vshepard
committed
Add StrictHostKeyChecking=no for ssh connect
1 parent dc775c2 commit da22340

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

testgres/operations/remote_ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
raise ImportError("You must have psycopg2 or pg8000 modules installed")
1717

1818
from ..exceptions import ExecUtilException
19+
from ..utils import reserve_port
1920
from .os_ops import OsOperations, ConnectionParams, get_default_encoding
2021

2122
error_markers = [b'error', b'Permission denied', b'fatal', b'No such file or directory']

testgres/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def execute_utility(args, logfile=None, verbose=False):
7474

7575
# write new log entry if possible
7676
if logfile:
77+
if not tconf.os_ops.path_exists(logfile):
78+
tconf.os_ops.touch(logfile)
7779
try:
7880
tconf.os_ops.write(filename=logfile, data=args, truncate=True)
7981
if out:

0 commit comments

Comments
 (0)