File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -810,6 +810,34 @@ mod tests {
810810 Ok ( ( ) )
811811 }
812812
813+ #[ test]
814+ fn test_boot_artifact_verity_efi_no_prefix ( ) -> Result < ( ) > {
815+ let input = r#"
816+ title Test
817+ version 1
818+ efi /EFI/boot/test.efi
819+ "# ;
820+ let config = parse_bls_config ( & input) ?;
821+
822+ let result = config. get_verity ( ) ;
823+ assert ! ( result. is_err( ) ) ;
824+ Ok ( ( ) )
825+ }
826+
827+ #[ test]
828+ fn test_boot_artifact_verity_efi_no_extension ( ) -> Result < ( ) > {
829+ let input = r#"
830+ title Test
831+ version 1
832+ efi /EFI/boot/test
833+ "# ;
834+ let config = parse_bls_config ( & input) ?;
835+
836+ let result = config. get_verity ( ) ;
837+ assert ! ( result. is_err( ) ) ;
838+ Ok ( ( ) )
839+ }
840+
813841 /// Test that Non-EFI boot_artifact_name fails when linux path has no parent
814842 #[ test]
815843 fn test_boot_artifact_name_non_efi_no_parent ( ) {
You can’t perform that action at this time.
0 commit comments