File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -868,6 +868,34 @@ mod tests {
868868 Ok ( ( ) )
869869 }
870870
871+ #[ test]
872+ fn test_boot_artifact_verity_efi_no_prefix ( ) -> Result < ( ) > {
873+ let input = r#"
874+ title Test
875+ version 1
876+ efi /EFI/boot/test.efi
877+ "# ;
878+ let config = parse_bls_config ( & input) ?;
879+
880+ let result = config. get_verity ( ) ;
881+ assert ! ( result. is_err( ) ) ;
882+ Ok ( ( ) )
883+ }
884+
885+ #[ test]
886+ fn test_boot_artifact_verity_efi_no_extension ( ) -> Result < ( ) > {
887+ let input = r#"
888+ title Test
889+ version 1
890+ efi /EFI/boot/test
891+ "# ;
892+ let config = parse_bls_config ( & input) ?;
893+
894+ let result = config. get_verity ( ) ;
895+ assert ! ( result. is_err( ) ) ;
896+ Ok ( ( ) )
897+ }
898+
871899 /// Test that Non-EFI boot_artifact_name fails when linux path has no parent
872900 #[ test]
873901 fn test_boot_artifact_name_non_efi_no_parent ( ) {
You can’t perform that action at this time.
0 commit comments