[testsharder] Order tests by name, not path
System path won't always be populated - and 'name' is more canonical.
Bug: IN-1439
Change-Id: I0a7fa3948695de44fcabe18e286b020bafef7036
diff --git a/testsharder/shard.go b/testsharder/shard.go
index 067c8b4..8362ee8 100644
--- a/testsharder/shard.go
+++ b/testsharder/shard.go
@@ -58,7 +58,7 @@
for _, env := range envs {
specs, _ := envToSuites.get(env)
sort.Slice(specs, func(i, j int) bool {
- return specs[i].Test.Path < specs[i].Test.Path
+ return specs[i].Test.Name < specs[j].Test.Name
})
var tests []Test
for _, spec := range specs {