Skip to content

Commit

Permalink
Fix buildkite env
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed May 14, 2021
1 parent 71cda0a commit d557b0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions conbench/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
def create_db():
configure_engine(TestConfig.SQLALCHEMY_DATABASE_URI)

try:
subprocess.run(["dropdb", TestConfig.DB_NAME])
subprocess.run(["createdb", TestConfig.DB_NAME])
except:
pass
command = ["dropdb", TestConfig.DB_NAME, "-U", "postgres", "--if-exists"]
subprocess.run(command, capture_output=True)
command = ["createdb", TestConfig.DB_NAME, "-U", "postgres"]
subprocess.run(command, capture_output=True)

drop_all()
create_all()
Expand Down

0 comments on commit d557b0d

Please sign in to comment.