Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda22340

Browse files
author
vshepard
committed
Add StrictHostKeyChecking=no for ssh connect
1 parentdc775c2 commitda22340

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
raiseImportError("You must have psycopg2 or pg8000 modules installed")
1717

1818
from ..exceptionsimportExecUtilException
19+
from ..utilsimportreserve_port
1920
from .os_opsimportOsOperations,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
iflogfile:
77+
ifnottconf.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
ifout:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp