This repository was archived by the owner on Apr 30, 2021. It is now read-only.
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
)
12
12
13
13
const FuzzitEndpoint = "https://app.fuzzit.dev"
14
- const Version = "v2.4.73 "
14
+ const Version = "v2.4.74 "
15
15
16
16
type Target struct {
17
17
Name string `firestore:"target_name"`
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"log"
20
20
"strconv"
21
21
"strings"
22
+ "time"
22
23
23
24
"github.com/fuzzitdev/fuzzit/v2/client"
24
25
"github.com/spf13/cobra"
@@ -110,19 +111,23 @@ var jobCmd = &cobra.Command{
110
111
newJob .TargetId = target
111
112
112
113
if newJob .Type == "local-regression" {
114
+ start := time .Now ()
113
115
err = gFuzzitClient .CreateLocalJob (newJob , args [1 :])
114
116
if err != nil && skipIfNotExist && (err .Error () == "401 Unauthorized" || err .Error () == "fuzzer exited with 22" ) {
115
117
log .Println ("Target doesn't exist yet. skipping..." )
116
118
return
117
119
}
120
+ diff := time .Now ().Sub (start )
121
+ log .Printf ("Regression for %s took %s seconds" , target , diff )
118
122
} else {
119
123
_ , err = gFuzzitClient .CreateJob (newJob , additionalCorpus , args [1 :])
124
+ log .Printf ("Job created successfully" )
120
125
}
121
126
122
127
if err != nil {
123
128
log .Fatal (err )
124
129
}
125
- log . Printf ( "Job created successfully" )
130
+
126
131
},
127
132
}
128
133
You can’t perform that action at this time.
0 commit comments