From a2c384ef60ee5590d7a5d27aceb2ef4b95049835 Mon Sep 17 00:00:00 2001 From: Nadiia Dubchak Date: Mon, 14 Jul 2025 21:04:23 +0000 Subject: [PATCH 1/2] Break test --- osutils/src/pcrlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osutils/src/pcrlock.rs b/osutils/src/pcrlock.rs index e795fa370..96d85ddcb 100644 --- a/osutils/src/pcrlock.rs +++ b/osutils/src/pcrlock.rs @@ -742,6 +742,6 @@ mod functional_test { // TODO: This test will fail for now since .pcrlock files have not been generated/added // yet. Once static .pcrlock files are added and dynamic files are generated, the test // should pass. - validate_log().unwrap_err(); + validate_log().unwrap(); } } From 46c4531f3c209fb91f59477852d282b79848192e Mon Sep 17 00:00:00 2001 From: Nadiia Dubchak Date: Mon, 14 Jul 2025 21:28:46 +0000 Subject: [PATCH 2/2] Fixed test --- src/engine/bootentries.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/bootentries.rs b/src/engine/bootentries.rs index ac7d03ba2..0073dbe3e 100644 --- a/src/engine/bootentries.rs +++ b/src/engine/bootentries.rs @@ -785,13 +785,13 @@ mod tests { fn test_update_efi_boot_order() { let bootmgr_output = get_bootmgr_output(); - // Test first-case where boot entry is already at the first position in `BootOrder` + // Test first-case where boot entry is not part of `BootOrder` let result = generate_new_boot_order( &bootmgr_output, &String::from("0001"), &BootOrderPosition::First, ); - assert_eq!(result, None); + assert_eq!(result, Some("0001,0000".to_string())); // Test first-case where boot entry is not part of `BootOrder` let result = generate_new_boot_order(