Skip to content

Commit

Permalink
Only clean psql db when using psql
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrunbauer committed Sep 3, 2024
1 parent e9a14a7 commit b4d0483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lib/adaguc/AdagucTestTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def cleanPostgres(self):
Some tests fail when using postgres if there is already data present in the database.
Running the test separately works."""

if adaguc_db := os.getenv("ADAGUC_DB", None):
adaguc_db = os.getenv("ADAGUC_DB", None)
if adaguc_db and not adaguc_db.endswith(".db"):
subprocess.run(
[
"psql",
Expand Down

0 comments on commit b4d0483

Please sign in to comment.