tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.99k stars 250 forks source link

Use a fresh database on each e2e test run #1637

Closed mtlynch closed 11 months ago

mtlynch commented 11 months ago

Currently, the end-to-end test reuses the dev database in ~/tinypilot.db. But that means that a DB corruption in one test run will affect subsequent runs, which we don't want.

To fix this, we can adjust the run-e2e-test script to use a temporary directory as TinyPilot's home directory for storing the TinyPilot SQLite database.

We also adjust the CI code so that it more closely matches the dev workflow.

Review on CodeApprove

mtlynch commented 11 months ago
Automated comment from CodeApprove ➜

⏳ @cghague please review this Pull Request

mtlynch commented 11 months ago

@cghague - Just want to verify this is still on your radar