-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make temporary data directories configurable #15
Comments
@enkore I believe this would help: http://pytest-dbfixtures.readthedocs.io/en/latest/configure.html#use-your-custom-path-for-logs Mind, that having a port in dir name usually helps distinguish folders for different test runs, although that doesn't help with separating paths for different runs |
From @enkore on May 5, 2016 8:15 Adding a plugin config option to set the data dir base path ( |
Okay, the way I see it it would be |
From @mmaslowskicc on May 25, 2016 8:5 Alternatively, we could support environment variables like |
@enkore could you check if the pytest-postgresql options will work for you? :) |
From @enkore on May 4, 2016 10:20
Currently these are hardcoded to paths like
/tmp/<dbname>.<port>
or similar paths (e.g./tmp/postgresqldata.5433
). It would be nice if this could be influenced in some way, e.g. an environment variable.Use case: This would allow to put these temporary paths in the working directory of CI jobs (travis, jenkins, ...), which rules out any issues that can occur with multiple jobs running in parallel. It also would make clean-up in case of crashes/errors easier (since the workdir is usually either automatically deleted after or before each build, or can be easily deleted from within the CI software).
Copied from original issue: ClearcodeHQ/pytest-dbfixtures#151
The text was updated successfully, but these errors were encountered: