blob: 5d1c126ca8341f1c91b86226f6366ba85eb2e7b1 [file]
// Copyright 2017 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 (
"os"
"go.chromium.org/tast/core/internal/bundle"
"go.chromium.org/tast/core/internal/testing"
)
// RemoteDefault implements the main function for remote test bundles.
//
// Usually the Main function of a remote test bundles should just this function,
// and pass the returned status code to os.Exit.
func RemoteDefault(d Delegate) int {
stdin, stdout, stderr := lockStdIO()
return bundle.Remote(os.Args[1:], stdin, stdout, stderr, testing.GlobalRegistry(), d)
}