Skip to content
Snippets Groups Projects
Verified Commit 829b92cc authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

db_testing: Simplify pg_createdb

parent 6aa0f325
No related branches found
No related tags found
1 merge request!304swh-db-init: Make the db initialization idempotent
......@@ -75,8 +75,7 @@ def pg_createdb(dbname, check=True):
not exist, the db will be created.
"""
_run = subprocess.check_call if check else subprocess.call
_run(['createdb', dbname])
subprocess.run(['createdb', dbname], check=check)
def db_create(dbname, dumps=None):
......
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