blob: 48f88b98a2a5d5532dff8552668bae1c499407ce [file] [log] [blame]
// Copyright 2020 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 crostini
import (
"context"
"chromiumos/tast/common/testexec"
"chromiumos/tast/local/vm"
)
// BasicCommandWorks executes a command in the container and returns
// an error if it fails.
func BasicCommandWorks(ctx context.Context, cont *vm.Container) error {
return cont.Command(ctx, "pwd").Run(testexec.DumpLogOnError)
}