@@ -41,7 +41,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
4141 database = 'postgres'
4242 ),
4343 url = RESTORE_JOB_URL ,
44- expected_cmd = '/ psql' ,
44+ expected_cmd = 'psql' ,
4545 expected_cmd_opts = ['--file' ],
4646 not_expected_cmd_opts = [],
4747 expected_exit_code = [0 , None ]
@@ -68,7 +68,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
6868 database = 'postgres'
6969 ),
7070 url = RESTORE_JOB_URL ,
71- expected_cmd = '/ pg_restore' ,
71+ expected_cmd = 'pg_restore' ,
7272 expected_cmd_opts = ['--verbose' ],
7373 not_expected_cmd_opts = [],
7474 expected_exit_code = [0 , None ]
@@ -95,7 +95,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
9595 database = 'postgres'
9696 ),
9797 url = RESTORE_JOB_URL ,
98- expected_cmd = '/ pg_restore' ,
98+ expected_cmd = 'pg_restore' ,
9999 expected_cmd_opts = ['--verbose' , '--format=d' ],
100100 not_expected_cmd_opts = [],
101101 expected_exit_code = [0 , None ]
@@ -127,7 +127,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
127127 only_schema = True
128128 ),
129129 url = RESTORE_JOB_URL ,
130- expected_cmd = '/ pg_restore' ,
130+ expected_cmd = 'pg_restore' ,
131131 expected_cmd_opts = ['--verbose' , '--jobs' , '2' ,
132132 '--section=pre-data' , '--section=data' ,
133133 '--section=post-data' ],
@@ -161,7 +161,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
161161 dns_owner = True
162162 ),
163163 url = RESTORE_JOB_URL ,
164- expected_cmd = '/ pg_restore' ,
164+ expected_cmd = 'pg_restore' ,
165165 expected_cmd_opts = ['--verbose' , '--data-only' ],
166166 not_expected_cmd_opts = [],
167167 # Below options should be enabled once we fix the issue #3368
@@ -193,7 +193,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
193193 only_data = False
194194 ),
195195 url = RESTORE_JOB_URL ,
196- expected_cmd = '/ pg_restore' ,
196+ expected_cmd = 'pg_restore' ,
197197 expected_cmd_opts = ['--no-owner' ,
198198 '--no-tablespaces' ,
199199 '--no-privileges' ],
@@ -227,7 +227,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
227227 only_data = False
228228 ),
229229 url = RESTORE_JOB_URL ,
230- expected_cmd = '/ pg_restore' ,
230+ expected_cmd = 'pg_restore' ,
231231 expected_cmd_opts = ['--no-comments' , '--no-publications' ,
232232 '--no-subscriptions' , '--no-security-labels' ],
233233 not_expected_cmd_opts = [],
@@ -259,7 +259,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
259259 dns_table_access_method = True
260260 ),
261261 url = RESTORE_JOB_URL ,
262- expected_cmd = '/ pg_restore' ,
262+ expected_cmd = 'pg_restore' ,
263263 expected_cmd_opts = ['--no-table-access-method' ],
264264 not_expected_cmd_opts = [],
265265 expected_exit_code = [0 , None ],
@@ -291,7 +291,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
291291 if_exists = True ,
292292 ),
293293 url = RESTORE_JOB_URL ,
294- expected_cmd = '/ pg_restore' ,
294+ expected_cmd = 'pg_restore' ,
295295 expected_cmd_opts = ['--create' , '--clean' ,
296296 '--single-transaction' , '--if-exists' ],
297297 not_expected_cmd_opts = [],
@@ -321,7 +321,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
321321 only_schema = False
322322 ),
323323 url = RESTORE_JOB_URL ,
324- expected_cmd = '/ pg_restore' ,
324+ expected_cmd = 'pg_restore' ,
325325 expected_cmd_opts = ['--enable-row-security' ,
326326 '--no-data-for-failed-tables' ],
327327 not_expected_cmd_opts = [],
@@ -349,7 +349,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
349349 only_schema = False
350350 ),
351351 url = RESTORE_JOB_URL ,
352- expected_cmd = '/ pg_restore' ,
352+ expected_cmd = 'pg_restore' ,
353353 expected_cmd_opts = ['--disable-triggers' ],
354354 not_expected_cmd_opts = [],
355355 expected_exit_code = [0 , None ]
@@ -376,7 +376,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
376376 exit_on_error = True ,
377377 ),
378378 url = RESTORE_JOB_URL ,
379- expected_cmd = '/ pg_restore' ,
379+ expected_cmd = 'pg_restore' ,
380380 expected_cmd_opts = ['--exit-on-error' ,
381381 '--use-set-session-authorization' ],
382382 not_expected_cmd_opts = [],
@@ -403,7 +403,7 @@ class RestoreCreateJobTest(BaseTestGenerator):
403403 exclude_schema = "sch*"
404404 ),
405405 url = RESTORE_JOB_URL ,
406- expected_cmd = '/ pg_restore' ,
406+ expected_cmd = 'pg_restore' ,
407407 expected_cmd_opts = ['--exclude-schema' , 'sch*' ],
408408 not_expected_cmd_opts = [],
409409 expected_exit_code = [0 , None ]
0 commit comments