mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix external utility tests to run on Windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user