File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
tests/integration_tests/security Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -349,8 +349,7 @@ fn main_exec() -> Result<(), JailerError> {
349349 fs:: create_dir_all ( env. chroot_dir ( ) )
350350 . map_err ( |err| JailerError :: CreateDir ( env. chroot_dir ( ) . to_owned ( ) , err) ) ?;
351351 env. run ( )
352- } )
353- . unwrap_or_else ( |err| panic ! ( "Jailer error: {}" , err) ) ;
352+ } ) ?;
354353 Ok ( ( ) )
355354}
356355
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def test_empty_jailer_id(uvm_plain):
6969 # we can set an empty ID.
7070 with pytest .raises (
7171 ChildProcessError ,
72- match = r"Jailer error: Invalid instance ID: Invalid len \(0\); the length must be between 1 and 64" ,
72+ match = r"Invalid instance ID: Invalid len \(0\); the length must be between 1 and 64" ,
7373 ):
7474 test_microvm .spawn ()
7575
@@ -88,7 +88,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
8888
8989 with pytest .raises (
9090 Exception ,
91- match = rf"Jailer error: Failed to canonicalize path { pseudo_exec_file_path } :"
91+ match = rf"Failed to canonicalize path { pseudo_exec_file_path } :"
9292 rf" No such file or directory \(os error 2\)" ,
9393 ):
9494 test_microvm .spawn ()
@@ -102,7 +102,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
102102
103103 with pytest .raises (
104104 Exception ,
105- match = rf"Jailer error: { pseudo_exec_dir_path } is not a file" ,
105+ match = rf"{ pseudo_exec_dir_path } is not a file" ,
106106 ):
107107 test_microvm .spawn ()
108108
@@ -115,7 +115,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
115115
116116 with pytest .raises (
117117 Exception ,
118- match = rf"Jailer error: { pseudo_exec_file_path } is not executable" ,
118+ match = rf"{ pseudo_exec_file_path } is not executable" ,
119119 ):
120120 test_microvm .spawn ()
121121
You can’t perform that action at this time.
0 commit comments