File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
from ..testgres import ExecUtilException
9
9
from ..testgres import InvalidOperationException
10
10
from ..testgres import RemoteOperations
11
+ from ..testgres import LocalOperations
11
12
from ..testgres import ConnectionParams
13
+ from ..testgres import utils as testgres_utils
12
14
13
15
14
16
class TestRemoteOperations :
@@ -59,7 +61,11 @@ def test_is_executable_true(self):
59
61
"""
60
62
Test is_executable for an existing executable.
61
63
"""
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" )
63
69
response = self .operations .is_executable (cmd )
64
70
65
71
assert response is True
You can’t perform that action at this time.
0 commit comments