Skip to content
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

acc: Support custom replacements #2231

Merged
merged 2 commits into from
Jan 27, 2025
Merged

acc: Support custom replacements #2231

merged 2 commits into from
Jan 27, 2025

Conversation

denik
Copy link
Contributor

@denik denik commented Jan 27, 2025

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.

@@ -24,6 +25,10 @@ type TestConfig struct {
// Which OSes the test is enabled on. Each string is compared against runtime.GOOS.
// If absent, default to true.
GOOS map[string]bool

// List of additional replacements to apply on this test.
// Old is a regexp, New is a replacement expression.
Copy link
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
Contributor Author

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 queue Jan 27, 2025
Merged via the queue into main with commit 1cb32ec Jan 27, 2025
9 checks passed
@denik denik deleted the denik/acc-custom-replace branch January 27, 2025 09:16
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