summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2020-02-21 14:42:32 -0800
committerCommit Bot <commit-bot@chromium.org>2020-04-14 23:56:47 +0000
commite4cbef4caf66779e5f8734c63fb591c991bf9674 (patch)
tree0352201fc2ee353b449cc3f59228be10a5aea8c2 /tests
parent1d6af551b9602d4bda8c6e3e8871890faa15c3df (diff)
downloadcrosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar.gz
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar.bz2
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar.lz
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar.xz
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.tar.zst
crosvm-e4cbef4caf66779e5f8734c63fb591c991bf9674.zip
tests: enable logging for boot test
The logs are important for diagnosing errors for the boot integration
testing. This change enables those logs.

TEST=cargo test -- boot
BUG=None

Change-Id: I1cc64fecacb0334118fec748f5382bc16c301e14
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2079177
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Zach Reizner <zachr@chromium.org>
Auto-Submit: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/boot.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/boot.rs b/tests/boot.rs
index b4e38e1..f74f38e 100644
--- a/tests/boot.rs
+++ b/tests/boot.rs
@@ -15,6 +15,7 @@ use libc::{cpu_set_t, sched_getaffinity};
 
 use crosvm::{linux, Config, Executable};
 use devices::{SerialParameters, SerialType};
+use sys_util::syslog;
 
 const CHROOT_KERNEL_PATH: &str = "/mnt/host/source/src/third_party/kernel/v4.19/";
 const CONTAINER_VM_DEFCONFIG: &str = "arch/x86/configs/chromiumos-container-vm-x86_64_defconfig";
@@ -220,6 +221,8 @@ fn prepare_kernel() -> PathBuf {
 
 #[test]
 fn boot() {
+    syslog::init().unwrap();
+
     let kernel_path = prepare_kernel();
 
     let mut c = Config::default();