Skip to content
Snippets Groups Projects
Commit 19bab94c546a authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:ambulance: also add option for dbport in do_tests create extension call

parent 94093b0ddc42
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,12 @@
# add unaccent if needed
for extension in extensions:
logging.info("Adding extension %s", extension)
result = call([
'psql', dbname, '-c', 'CREATE EXTENSION %s;' % extension])
create_extension = [
'psql', dbname, '-c', 'CREATE EXTENSION %s;' % extension]
if dbport:
create_extension.append('-p')
create_extension.append(dbport)
result = call(create_extension)
if result:
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment