File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 88from ..testgres import ExecUtilException
99from ..testgres import InvalidOperationException
1010from ..testgres import RemoteOperations
11+ from ..testgres import LocalOperations
1112from ..testgres import ConnectionParams
13+ from ..testgres import utils as testgres_utils
1214
1315
1416class TestRemoteOperations :
@@ -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 assert response is True
You can’t perform that action at this time.
0 commit comments