cgoEnabled bool
partial bool
- haveTime bool // the 'time' binary is available
tests []distTest
timeoutScale int
t.runNames = flag.Args()
- if t.hasBash() {
- if _, err := exec.LookPath("time"); err == nil {
- t.haveTime = true
- }
- }
-
// Set GOTRACEBACK to system if the user didn't set a level explicitly.
// Since we're running tests for Go, we want as much detail as possible
// if something goes wrong.
func (t *tester) registerTest(name, dirBanner string, cmdline ...interface{}) {
bin, args := flattenCmdline(cmdline)
- if bin == "time" && !t.haveTime {
- bin, args = args[0], args[1:]
- }
if t.isRegisteredTestName(name) {
panic("duplicate registered test name " + name)
}