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

Commit7177212

Browse files
TestRemoteOperations::test_is_executable_true is corrected (#204)
Let's test a real pg_config.
1 parentb0f90d9 commit7177212

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎tests/test_remote.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
from ..testgresimportExecUtilException
99
from ..testgresimportInvalidOperationException
1010
from ..testgresimportRemoteOperations
11+
from ..testgresimportLocalOperations
1112
from ..testgresimportConnectionParams
13+
from ..testgresimportutilsastestgres_utils
1214

1315

1416
classTestRemoteOperations:
@@ -59,7 +61,11 @@ def test_is_executable_true(self):
5961
"""
6062
Test is_executable for an existing executable.
6163
"""
62-
cmd=os.getenv('PG_CONFIG')
64+
local_ops=LocalOperations()
65+
cmd=testgres_utils.get_bin_path2(local_ops,"pg_config")
66+
cmd=local_ops.exec_command([cmd,"--bindir"],encoding="utf-8")
67+
cmd=cmd.rstrip()
68+
cmd=os.path.join(cmd,"pg_config")
6369
response=self.operations.is_executable(cmd)
6470

6571
assertresponseisTrue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp