ready

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package ready provides functions to be passed as a "ready" function to the bundle main function.

Index

Constants

View Source
const ClearPoliciesLogLocation = "/tmp/ready-clearPolicies.err"

ClearPoliciesLogLocation is the location of the error log for clearPolicies. If the removing policies did not encounter any errors the file should not exist.

View Source
const EnterpriseOwnedLogLocation = "/tmp/ready-enterpriseOwned.err"

EnterpriseOwnedLogLocation is the location of the error log for checkEnterpriseOwned. If the the DUT is not enterprise owned the file should not exist.

Variables

This section is empty.

Functions

func Wait

func Wait(ctx context.Context, systemServicesTimeout time.Duration) error

Wait waits until the system is (marginally) ready for tests to run. Tast can sometimes be run against a freshly-booted VM, and we don't want every test that depends on a critical daemon to need to call upstart.WaitForJobStatus to wait for the corresponding job to be running. See https://crbug.com/897521 for more details.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL