mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
github: Partition tests by their root
This commit is contained in:
@@ -194,6 +194,13 @@ func TestRace() error {
|
||||
return err
|
||||
}
|
||||
for _, pkg := range pkgs {
|
||||
slashCount := strings.Count(pkg, "/")
|
||||
if slashCount > 1 {
|
||||
continue
|
||||
}
|
||||
if pkg != "." {
|
||||
pkg += "/..."
|
||||
}
|
||||
if err := cmp.Or(CleanTest(), UninstallAll()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user