Skip to content

acc: add Ignore setting to config - #2405

Merged
denik merged 1 commit into
mainfrom
denik/acc-ignore
Feb 28, 2025
Merged

acc: add Ignore setting to config#2405
denik merged 1 commit into
mainfrom
denik/acc-ignore

Conversation

@denik

Copy link
Copy Markdown
Contributor

Ignore output files using gitignore syntax.

Changes

New Ignore setting in test.toml that will ignore specified files (syntax is gitignore).

Why

I'm using it in #2396 to ignore virtual env. It includes a lot of files. The regular 'rm -fr .venv' approach only works if script get to that point, but due to errors it might abort early. In that cases test runner prints all unexpected files, polluting output. Ignoring those files at test runner level ensure you never see them.

Tests

Updated selftest/basic.

Ignore output files using gitignore syntax. I'm using it in #2396 to ignore virtual env.
It includes a lot of files. The regular 'rm -fr .venv' approach only works if scripts get
to that point. However, if there are any errors, it does not, and outputs a lot of files,
polluting output. Ignoring those files at test runner level ensure you never see them.
Merged via the queue into main with commit 211ec62Feb 28, 2025
@denik
denik deleted the denik/acc-ignore branch February 28, 2025 14:31
denik added a commit that referenced this pull request May 20, 2026
Ignore output files using gitignore syntax.
## Changes
New Ignore setting in test.toml that will ignore specified files (syntax
is gitignore).
## Why
I'm using it in #2396 to ignore virtual env. It includes a lot of files.
The regular 'rm -fr .venv' approach only works if script get to that
point, but due to errors it might abort early. In that cases test runner
prints all unexpected files, polluting output. Ignoring those files at
test runner level ensure you never see them.
## Tests
Updated selftest/basic.
Sign up for freeto 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

@denik@shreyas-goenka