commit | ca7b5d33da5339c9064fddf19988f75ef6437f46 | [log] [tgz] |
---|---|---|
author | David Brown <david.brown@linaro.org> | Fri Nov 03 08:37:38 2017 -0600 |
committer | David Brown <davidb@davidb.org> | Tue Nov 07 09:39:45 2017 -0700 |
tree | da9945c989f37b04ccae24209dd33563736c7981 | |
parent | dd2b118b21179658cf4f6fe3a730ffdf8fe47840 [diff] [blame] |
sim: Enable logging in simulator test cases When running simulations as unit tests, use a workaround from https://stackoverflow.com/questions/30177845/how-to-initialize-the-logger-for-integration-tests to initialize the logging system. Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/sim/tests/core.rs b/sim/tests/core.rs index dea9cfe..010f240 100644 --- a/sim/tests/core.rs +++ b/sim/tests/core.rs
@@ -5,9 +5,12 @@ extern crate bootsim; use bootsim::{ALL_DEVICES, RunStatus}; +use bootsim::testlog; #[test] fn core_tests() { + testlog::setup(); + let mut status = RunStatus::new(); for &dev in ALL_DEVICES {