Skip to content

Commit 191f983

Browse files
committed
Refactor: Simplify error handling in tests and fix indentation in doc comments
1 parent 8edde0f commit 191f983

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/e2e/telemetry.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ fn build_test_sandbox_with_env(env: Vec<(&str, &str)>) -> Option<Arc<Sandbox>> {
146146
return None;
147147
}
148148

149-
let (kernel, initramfs) = match kvm_artifacts_from_env() {
150-
Some(a) => a,
151-
None => return None,
152-
};
149+
let (kernel, initramfs) = kvm_artifacts_from_env()?;
153150

154151
if !kernel.exists() {
155152
return None;

tests/kvm_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! - Require environment variables pointing to guest artifacts:
99
//! - `VOID_BOX_KERNEL` -> path to vmlinux or bzImage
1010
//! - `VOID_BOX_INITRAMFS` -> path to initramfs (cpio.gz) that boots
11-
//! the guest-agent as PID 1.
11+
//! the guest-agent as PID 1.
1212
//!
1313
//! All tests are marked `#[ignore]` so they only run when explicitly
1414
//! requested, e.g.:

0 commit comments

Comments
 (0)