mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-23 09:16:29 -06:00
Fix external utility tests to run on Windows
This commit is contained in:
parent
3f4d5a687b
commit
6b5ca07715
@ -653,6 +653,10 @@ class BackupCreateJobTest(BaseTestGenerator):
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']],
|
||||
'pg_dump')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
@ -52,6 +52,10 @@ class BackupJobTest(BaseTestGenerator):
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']],
|
||||
'pg_dump')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
@ -52,6 +52,10 @@ class MaintenanceJobTest(BaseTestGenerator):
|
||||
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']], 'psql')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
@ -141,6 +141,10 @@ class MaintenanceCreateJobTest(BaseTestGenerator):
|
||||
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']], 'psql')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
@ -75,6 +75,10 @@ class RestoreJobTest(BaseTestGenerator):
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']],
|
||||
'pg_restore')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
@ -305,6 +305,10 @@ class RestoreCreateJobTest(BaseTestGenerator):
|
||||
binary_path = os.path.join(
|
||||
self.server['default_binary_paths'][self.server['type']],
|
||||
'pg_restore')
|
||||
|
||||
if os.name == 'nt':
|
||||
binary_path = binary_path + '.exe'
|
||||
|
||||
retVal = does_utility_exist(binary_path)
|
||||
if retVal is not None:
|
||||
self.skipTest(retVal)
|
||||
|
Loading…
Reference in New Issue
Block a user