crosvm/e2e_tests/benches/boot.rs

14 lines
378 B
Rust
Raw Normal View History

// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fixture::vm::Config;
use fixture::vm::TestVm;
#[test]
fn boot_test_vm() -> anyhow::Result<()> {
let mut vm = TestVm::new(Config::from_env()).unwrap();
assert_eq!(vm.exec_in_guest("echo 42")?.trim(), "42");
Ok(())
}