We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0f90d9 commit 7177212Copy full SHA for 7177212
tests/test_remote.py
@@ -8,7 +8,9 @@
8
from ..testgres import ExecUtilException
9
from ..testgres import InvalidOperationException
10
from ..testgres import RemoteOperations
11
+from ..testgres import LocalOperations
12
from ..testgres import ConnectionParams
13
+from ..testgres import utils as testgres_utils
14
15
16
class TestRemoteOperations:
@@ -59,7 +61,11 @@ def test_is_executable_true(self):
59
61
"""
60
62
Test is_executable for an existing executable.
63
- 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")
69
response = self.operations.is_executable(cmd)
70
71
assert response is True
0 commit comments