Skip to content

Disable ttyrec recording by default in tests to avoid polluting the directory in which tests are run#105

Open
jbcoe wants to merge 1 commit intoNetHack-LE:mainfrom
jbcoe:jbcoe/clean-tests
Open

Disable ttyrec recording by default in tests to avoid polluting the directory in which tests are run#105
jbcoe wants to merge 1 commit intoNetHack-LE:mainfrom
jbcoe:jbcoe/clean-tests

Conversation

@jbcoe
Copy link

@jbcoe jbcoe commented Mar 9, 2026

Before this change, a file (nle.ttyrec3.bz2) is written to the project root when tests are run. I'm curious as to why we've not spotted this before.

Investigation in progress so leaving this as a draft for now.

@jbcoe jbcoe changed the title Add fixture to disable ttyrec recording by default in tests Disable ttyrec recording by default in tests to avoid polluting the directory in which tests are run Mar 9, 2026
@StephenOman
Copy link
Collaborator

I've just ignored the file so far!

@jbcoe jbcoe marked this pull request as ready for review March 10, 2026 08:45
@jbcoe
Copy link
Author

jbcoe commented Mar 10, 2026

If this is know about, I'll consider my investigation complete.

I don't think that running tests should need write access to the working directory, this PR fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants