mirror of
https://github.com/gohugoio/hugo.git
synced 2025-12-13 20:36:04 +01: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