Merge pull request #140 from danw/sort_tests

Sort testcases to make build (more) reproducible
This commit is contained in:
Dan Willemsen 2017-01-31 18:08:26 -08:00 committed by GitHub
commit 2eeb7ee14b

View file

@ -23,6 +23,7 @@ import (
"go/token"
"io/ioutil"
"os"
"sort"
"strings"
"text/template"
)
@ -51,6 +52,7 @@ func findTests(srcs []string) (tests []string) {
tests = append(tests, obj.Name)
}
}
sort.Strings(tests)
return
}