blob: b7c124c40636d62d24e3b0e1967ce04f334668a6 [file] [log] [blame]
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package bundle
import (
// LocalDefault implements the main function for local test bundles.
// Usually the Main function of a local test bundles should just this function,
// and pass the returned status code to os.Exit.
func LocalDefault(d Delegate) int {
stdin, stdout, stderr := lockStdIO()
return bundle.Local(os.Args[1:], stdin, stdout, stderr, testing.GlobalRegistry(), d)