blob: 05bc333003e9c2af83872e6715d8491a9464e487 [file] [log] [blame]
// Copyright 2020 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package bundle
import (
"context"
"io"
"time"
"go.chromium.org/tast/core/internal/testing"
)
const (
remoteTestTimeout = 5 * time.Minute // default max runtime for each test
)
// Remote implements the main function for remote test bundles.
//
// Main function of remote test bundles should call RemoteDefault instead.
func Remote(clArgs []string, stdin io.Reader, stdout, stderr io.Writer, reg *testing.Registry, d Delegate) int {
cfg := NewStaticConfig(reg, remoteTestTimeout, d)
return run(context.Background(), clArgs, stdin, stdout, stderr, cfg)
}