Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 7ec8032

Browse files
committed
Assert dmesg succeeds
1 parent baed97f commit 7ec8032

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testlib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub fn with_kernel_module<F: Fn()>(f: F) {
4141

4242
pub fn assert_dmesg_contains(msgs: &[&[u8]]) {
4343
let output = Command::new("dmesg").output().unwrap();
44+
assert!(output.status.success());
4445
let lines = output.stdout.split(|x| *x == b'\n').collect::<Vec<_>>();
4546
let mut lines: &[&[u8]] = &lines;
4647
for msg in msgs {

0 commit comments

Comments
 (0)