Skip to content

Commit ca53780

Browse files
committed
Use ovmf-prebuilt crate for running UEFI tests
1 parent 4d4b584 commit ca53780

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/runner/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ edition = "2018"
99
[dependencies]
1010
bootloader = { path = "../.." }
1111
strip-ansi-escapes = "0.1.1"
12+
ovmf-prebuilt = "0.1.0-alpha.1"

tests/runner/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn run_test_kernel(kernel_binary_path: &str) {
2222
.arg(format!("format=raw,file={}", out_gpt_path.display()));
2323
run_cmd.args(QEMU_ARGS);
2424
run_cmd.args(std::env::args().skip(2).collect::<Vec<_>>());
25-
run_cmd.arg("-bios").arg("OVMF-pure-efi.fd");
25+
run_cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi());
2626

2727
let child_output = run_cmd.output().unwrap();
2828
strip_ansi_escapes::Writer::new(std::io::stderr())

0 commit comments

Comments
 (0)