diff --git a/test/integration-test/src/tests/load.rs b/test/integration-test/src/tests/load.rs index de01e6c2..418e00b8 100644 --- a/test/integration-test/src/tests/load.rs +++ b/test/integration-test/src/tests/load.rs @@ -56,7 +56,11 @@ fn multiple_btf_maps() -> anyhow::Result<()> { } fn is_loaded(name: &str) -> bool { - let output = Command::new("bpftool").args(["prog"]).output().unwrap(); + let output = Command::new("bpftool").args(["prog"]).output(); + let output = match output { + Err(e) => panic!("Failed to run 'bpftool prog': {e}"), + Ok(out) => out, + }; let stdout = String::from_utf8(output.stdout).unwrap(); stdout.contains(name) }