Skip to content

scripts: let mutate.sh take 'go test' after -- - #213

Merged
linyiru merged 1 commit into
mainfrom
mutate-go-test-args
Nov 8, 2026
Merged

linyiru merged 1 commit into
mainfrom
mutate-go-test-args

Conversation

@linyiru

@linyiru linyiru commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Typing scripts/mutate.sh FILE old new -- go test -run X ./pkg is natural, and an agent did exactly that. go test then read go and test as package names, so the baseline failed with "package test is not in std". The run ended INVALID, with nothing pointing at the cause.

mutate.sh now drops a leading go test after -- and prints a note saying it did. scripts/test-mutate.sh has a case for it.

Typing `-- go test -run X ./pkg` is natural, and go test then read "go" and "test" as package names, so the baseline failed with "package test is not in std" and the run ended INVALID with nothing pointing at the cause. mutate.sh now drops a leading "go test" after -- and says so.

Signed-off-by: Yi-Ru Lin <deduce@gmail.com>
@linyiru
linyiru enabled auto-merge November 8, 2026 03:17
@linyiru
linyiru merged commit 7b4831a into main Nov 8, 2026
7 checks passed
@linyiru
linyiru deleted the mutate-go-test-args branch November 8, 2026 03:19
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.

1 participant