github.com/nya3jp/tast@v0.0.0-20230601000426-85c8e4d83a9b/src/go.chromium.org/tast/core/internal/bundle/remote.go (about) 1 // Copyright 2020 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package bundle 6 7 import ( 8 "context" 9 "io" 10 "time" 11 12 "go.chromium.org/tast/core/internal/testing" 13 ) 14 15 const ( 16 remoteTestTimeout = 5 * time.Minute // default max runtime for each test 17 ) 18 19 // Remote implements the main function for remote test bundles. 20 // 21 // Main function of remote test bundles should call RemoteDefault instead. 22 func Remote(clArgs []string, stdin io.Reader, stdout, stderr io.Writer, reg *testing.Registry, d Delegate) int { 23 cfg := NewStaticConfig(reg, remoteTestTimeout, d) 24 return run(context.Background(), clArgs, stdin, stdout, stderr, cfg) 25 }