You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bit concerning, since it could be easy to make a change to get_run_dir that e.g. returns /, which could result in disaster.
pytest offers two fixtures (tmpdir and tmpdir_factory) for creating temporary directories that are automatically cleaned up. Was there an intentional decision not to use these in favor of the more explicit but dangerous current approach?
The text was updated successfully, but these errors were encountered:
The test suite manually cleans up the run directory code: https://github.com/VulcanClimateModeling/fv3gfs-fortran/blob/201f4cc6da6a90a477e59d04f58f05f503317e6c/tests/pytest/test_regression.py#L96
This is a bit concerning, since it could be easy to make a change to
get_run_dir
that e.g. returns/
, which could result in disaster.pytest
offers two fixtures (tmpdir
andtmpdir_factory
) for creating temporary directories that are automatically cleaned up. Was there an intentional decision not to use these in favor of the more explicit but dangerous current approach?The text was updated successfully, but these errors were encountered: