8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94fd54a commit 02aef65Copy full SHA for 02aef65
tests/helpers/ptrack_helpers.py
@@ -90,17 +90,17 @@ def dir_files(base_dir):
90
def is_enterprise():
91
# pg_config --help
92
if os.name == 'posix':
93
- cmd = [os.environ['PG_CONFIG'], '--help']
+ cmd = [os.environ['PG_CONFIG'], '--pgpro-edition']
94
95
elif os.name == 'nt':
96
- cmd = [[os.environ['PG_CONFIG']], ['--help']]
+ cmd = [[os.environ['PG_CONFIG']], ['--pgpro-edition']]
97
98
p = subprocess.Popen(
99
cmd,
100
stdout=subprocess.PIPE,
101
stderr=subprocess.PIPE
102
)
103
- if b'postgrespro.ru' in p.communicate()[0]:
+ if b'enterprise' in p.communicate()[0]:
104
return True
105
else:
106
return False
0 commit comments