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
Running regression tests litters examples with empty .nmlcache directories #139
Comments
I see this happens, and your explanation is correct. (except that the existing regression tests created regression/.nmlcache, not in the root dir). Your patch looks sane to me, but doesn't seem to work; the offending dirs are still created. I haven't figured out why yet. ;-) |
I remember now that I used
Also, |
Maybe just add Edit: and of course I forgot to refresh before commenting |
I don't actually think this is solved yet. The referenced commit makes Line 12 in 6817087
Haven't tested yet, though. |
You're right, |
It's specified in the actual nml calls for the examples: I checked that no The first pass of the tests under |
Oh right, just tested and only |
Ah, good call, hadn't seen the |
I noticed this building the 0.5.1 Debian packages, which produced empty
.nmlcache
directories in the installed examples.I think this is triggered by #125, which causes the examples to be built, changing the current directory to the examples directory. By default, nml seems to create
.nmlcache
in the current directory (but for these examples nothing is written to these directories).I suspect that an
.nmlcache
directory was created for the regression test already prior to #125, but since the current directory was not changed, that was created in the repo root, which is not included on installs, so these did not show up in the Debian package.To fix this, I would suggest:
--cache-dir
to use a single cache directory outside of the example dirs themselves,I guess 1. could be omitted, but that makes 2. and 3. a bit more tricky.
This could maybe look like this (untested, though):
The text was updated successfully, but these errors were encountered: