mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-13 18:13:56 +09:00
ci: restrict test generator to .go files
The integration test generator scanned all files under integration/ with ripgrep, matching func Test* patterns in README.md code examples (TestMyScenario, TestRouteAdvertisementBasic). Add --type go to limit the search to Go source files.
This commit is contained in:
1 parent
fd1074160e
commit
1f9635c2ec
1 file changed
+1
@@ -66,6 +66,7 @@ func findTests() []string {
|
||||
}
|
||||
|
||||
args := []string{
|
||||
"--type", "go",
|
||||
"--regexp", "func (Test.+)\\(.*",
|
||||
"../../integration/",
|
||||
"--replace", "$1",
|
||||
|
||||
Reference in new issue
Block a user