Skip to content

Commit

Permalink
new /etc
Browse files Browse the repository at this point in the history
  • Loading branch information
simsong committed Jan 2, 2025
1 parent 87198a2 commit 702d23d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,14 @@ PLANTTRACER_LOCALDB_NAME ?= actions_test
create_localdb:
@echo Creating local database, exercise the upgrade code and write credentials to $(PLANTTRACER_CREDENTIALS) using $(ETC)/github_actions_mysql_rootconfig.ini
@echo $(PLANTTRACER_CREDENTIALS) will be used automatically by other tests
mkdir -p $(ETC)
ls -l $(ETC)
$(PYTHON) $(DBMAINT) --create_client=$$MYSQL_ROOT_PASSWORD --writeconfig $(ETC)/github_actions_mysql_rootconfig.ini
$(PYTHON) $(DBMAINT) --rootconfig $(ETC)/github_actions_mysql_rootconfig.ini --createdb $(PLANTTRACER_LOCALDB_NAME) --schema $(APP_ETC)/schema_0.sql --writeconfig $(PLANTTRACER_CREDENTIALS)
ls -l $(ETC)
$(PYTHON) $(DBMAINT) --rootconfig $(ETC)/github_actions_mysql_rootconfig.ini \
--createdb $(PLANTTRACER_LOCALDB_NAME) \
--schema $(APP_ETC)/schema_0.sql \
--writeconfig $(PLANTTRACER_CREDENTIALS)
$(PYTHON) $(DBMAINT) --upgradedb --loglevel DEBUG
$(PYTHON) -m pytest -x --log-cli-level=DEBUG tests/dbreader_test.py

Expand Down

0 comments on commit 702d23d

Please sign in to comment.