summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2023-03-31 12:36:54 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2023-03-31 12:36:54 +0200
commit4bcef0eee5f7cd7d5f11ec05a976f51a8402d521 (patch)
tree0feae330dfd5142db198cd68561a5a7672436474
parentabbd859b766c339f5de33ff08704a7b9ad045bef (diff)
downloadironic-4bcef0eee5f7cd7d5f11ec05a976f51a8402d521.tar.gz
Do not log into the template1 database during test-setup
Template databases are not designed to run random SQL code. They should only be accessed to modify the template itself. Use postgres instead. Change-Id: Id7d38895d8d04964557447ecbc6ca29f39f626c9
-rwxr-xr-xtools/test-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh
index 16974adb5..924f0c824 100755
--- a/tools/test-setup.sh
+++ b/tools/test-setup.sh
@@ -83,5 +83,5 @@ EOF
chmod 0600 $HOME/.pgpass
# Now create our database
-psql -h 127.0.0.1 -U $DB_USER -d template1 -c "DROP DATABASE IF EXISTS openstack_citest"
+psql -h 127.0.0.1 -U $DB_USER -d postgres -c "DROP DATABASE IF EXISTS openstack_citest"
createdb -h 127.0.0.1 -U $DB_USER -l C -T template0 -E utf8 openstack_citest