scripts/lint: fix timing of lint tasks
Change-Id: I068cad315fd05ee235413d8230d454507b0a60e4
This commit is contained in:
parent
9153f37055
commit
b74340b1d6
@ -86,7 +86,9 @@ func main() {
|
|||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
log.Println(prefix, "running")
|
log.Println(prefix, "running")
|
||||||
defer log.Println(prefix, "done", time.Since(start))
|
defer func() {
|
||||||
|
log.Println(prefix, "done", time.Since(start))
|
||||||
|
}()
|
||||||
|
|
||||||
_ = cmd.Run()
|
_ = cmd.Run()
|
||||||
exitCode := cmd.ProcessState.ExitCode()
|
exitCode := cmd.ProcessState.ExitCode()
|
||||||
@ -164,6 +166,11 @@ func main() {
|
|||||||
commands[1] = append(commands[1], newCommand(ctx, workDir, "golangci-lint", args...))
|
commands[1] = append(commands[1], newCommand(ctx, workDir, "golangci-lint", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
|
defer func() {
|
||||||
|
log.Println("total time", time.Since(start))
|
||||||
|
}()
|
||||||
|
|
||||||
for _, tier := range commands {
|
for _, tier := range commands {
|
||||||
for _, cmd := range tier {
|
for _, cmd := range tier {
|
||||||
ok := submit(cmd)
|
ok := submit(cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user