diff mbox

tests: vm: output everything on console

Message ID 1448629934-30526-1-git-send-email-johannes@sipsolutions.net
State Accepted
Headers show

Commit Message

Johannes Berg Nov. 27, 2015, 1:12 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

When running tests, make printk put all messages, including debug
messages, onto the serial console to go into the console file.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 tests/hwsim/vm/inside.sh | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen Dec. 28, 2015, 4:55 p.m. UTC | #1
On Fri, Nov 27, 2015 at 02:12:14PM +0100, Johannes Berg wrote:
> When running tests, make printk put all messages, including debug
> messages, onto the serial console to go into the console file.

Thanks, applied. For some reason, this was making lots of test cases
fail frequently when I first tested this, but in any case, I cannot
reproduce this anymore. I'm not sure what removed the issue, but I think
that both kvm and kernel versions used for the VM have changed since my
initials tests.
diff mbox

Patch

diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index 60398081317c..a060bc5dc11e 100755
--- a/tests/hwsim/vm/inside.sh
+++ b/tests/hwsim/vm/inside.sh
@@ -14,6 +14,8 @@  mount debugfs -t debugfs /sys/kernel/debug
 
 export PATH=/usr/sbin:$PATH
 
+echo 8 8 8 8 > /proc/sys/kernel/printk
+
 # reboot on any sort of crash
 sysctl kernel.panic_on_oops=1
 sysctl kernel.panic=1