From 6e5593f11baa7423ac421126bb0c082d1e034cdc Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 4 Feb 2017 09:46:51 +0100 Subject: Prepare for using standard python tests Add simple script to setup mysql and postgresql databases, this script can be run by users during testing and will be run by CI systems for specific setup before running unit tests. This is exactly what is currently done by OpenStack CI in project-config. This allows to change in project-config the python-db jobs to python-jobs since python-jobs will call this script initially. See also http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html Update HACKING for this. Needed-By: I98c1b799e520cad102b9e47cf51477f54b07e732 Change-Id: Id5e3b67190866acdebee2b89f4393d5c407a5b96 --- HACKING.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'HACKING.rst') diff --git a/HACKING.rst b/HACKING.rst index 03c51a292..854e563a7 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -41,6 +41,9 @@ run --parallel` will run it in parallel (this is the default incantation tox uses.) More information about testr can be found at: http://wiki.openstack.org/testr +Note that unit tests use a database if available. See +``tools/test-setup.sh`` on how to set up the databases the same way as +done in the OpenStack CI systems. Heat Specific Commandments -------------------------- -- cgit v1.2.1