Skip to content

acc: Support custom replacements - #2231

Merged
denik merged 2 commits into
mainfrom
denik/acc-custom-replace
Jan 27, 2025
Merged

acc: Support custom replacements#2231
denik merged 2 commits into
mainfrom
denik/acc-custom-replace

Conversation

@denik

@denikdenik commented Jan 27, 2025

Copy link
Copy Markdown
Contributor

Changes

  • Ability to extend a list of replacements via test.toml
  • Modify selftest to both demo this feature and to get rid of sed on Windows.

Tests

Acceptance tests. I'm also using it #2213 for things like pid.

GOOS map[string]bool

// List of additional replacements to apply on this test.
// Old is a regexp, New is a replacement expression.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are applied last, right?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

@denik
denik added this pull request to the merge queueJan 27, 2025
Merged via the queue into main with commit 1cb32ecJan 27, 2025
@denik
denik deleted the denik/acc-custom-replace branch January 27, 2025 09:16
denik added a commit that referenced this pull request May 20, 2026
## Changes
- Ability to extend a list of replacements via test.toml
- Modify selftest to both demo this feature and to get rid of sed on
Windows.
## Tests
Acceptance tests. I'm also using it
#2213 for things like pid.
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@pietern