mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 12:16:44 +02:00
gofmt
Change-Id: I7ef4a4b082f1ec73816a735b27f845d55f4ecd0b Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
parent
f346a39bb1
commit
1705cedc72
@ -42,12 +42,12 @@ var (
|
||||
raceFlag = flag.Bool("race", true, "also run tests with -race")
|
||||
parallelFlag = flag.Int("parallel", runtime.NumCPU(), "number of packages to test in parallel")
|
||||
maxBaseline = flag.Duration("max-baseline", 60*time.Second, "max baseline time; tests exceeding this are marked as flakes")
|
||||
baselineFile = flag.String("baseline", "", "path to baseline.json (runs baseline if empty)")
|
||||
csvFile = flag.String("csv", "", "path to existing tests.csv to resume from")
|
||||
outputFile = flag.String("output", "tests.csv", "path to output CSV")
|
||||
packagesFlag = flag.String("packages", "./...", "package pattern to test")
|
||||
flakeLogFile = flag.String("flake-log", "flakes.log", "path to flake log file")
|
||||
goToolFlag = flag.String("go", "./tool/go", "path to go command")
|
||||
baselineFile = flag.String("baseline", "", "path to baseline.json (runs baseline if empty)")
|
||||
csvFile = flag.String("csv", "", "path to existing tests.csv to resume from")
|
||||
outputFile = flag.String("output", "tests.csv", "path to output CSV")
|
||||
packagesFlag = flag.String("packages", "./...", "package pattern to test")
|
||||
flakeLogFile = flag.String("flake-log", "flakes.log", "path to flake log file")
|
||||
goToolFlag = flag.String("go", "./tool/go", "path to go command")
|
||||
)
|
||||
|
||||
// TestEvent represents a single JSON event from go test -json
|
||||
@ -62,11 +62,11 @@ type TestEvent struct {
|
||||
|
||||
// TestInfo holds baseline info for a test
|
||||
type TestInfo struct {
|
||||
Package string
|
||||
Test string
|
||||
BaselineMS float64 // baseline time in milliseconds
|
||||
PassCount int
|
||||
Status string // "pending", "pass", "flake", "flake-race"
|
||||
Package string
|
||||
Test string
|
||||
BaselineMS float64 // baseline time in milliseconds
|
||||
PassCount int
|
||||
Status string // "pending", "pass", "flake", "flake-race"
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
@ -511,10 +511,10 @@ func (s *system) addRemote(name string) string {
|
||||
s.t.Logf("FileServer for %v listening at %s", name, fileServer.Addr())
|
||||
|
||||
r := &remote{
|
||||
l: ln,
|
||||
fileServer: fileServer,
|
||||
fs: NewFileSystemForRemote(log.Printf),
|
||||
shares: make(map[string]string),
|
||||
l: ln,
|
||||
fileServer: fileServer,
|
||||
fs: NewFileSystemForRemote(log.Printf),
|
||||
shares: make(map[string]string),
|
||||
permissions: make(map[string]drive.Permission),
|
||||
}
|
||||
r.fs.SetFileServerAddr(fileServer.Addr())
|
||||
|
||||
@ -937,8 +937,8 @@ func (tb *testBackend) NetMap() *netmap.NetworkMap {
|
||||
AllowLocalPortForwarding: tb.allowLocalPortForwarding,
|
||||
AllowRemotePortForwarding: tb.allowRemotePortForwarding,
|
||||
},
|
||||
SSHUsers: map[string]string{"*": tb.localUser},
|
||||
AcceptEnv: []string{"GIT_*", "EXACT_MATCH", "TEST?NG"},
|
||||
SSHUsers: map[string]string{"*": tb.localUser},
|
||||
AcceptEnv: []string{"GIT_*", "EXACT_MATCH", "TEST?NG"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user