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> {
349
349
fs:: create_dir_all ( env. chroot_dir ( ) )
350
350
. map_err ( |err| JailerError :: CreateDir ( env. chroot_dir ( ) . to_owned ( ) , err) ) ?;
351
351
env. run ( )
352
- } )
353
- . unwrap_or_else ( |err| panic ! ( "Jailer error: {}" , err) ) ;
352
+ } ) ?;
354
353
Ok ( ( ) )
355
354
}
356
355
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def test_empty_jailer_id(uvm_plain):
69
69
# we can set an empty ID.
70
70
with pytest .raises (
71
71
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" ,
73
73
):
74
74
test_microvm .spawn ()
75
75
@@ -88,7 +88,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
88
88
89
89
with pytest .raises (
90
90
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 } :"
92
92
rf" No such file or directory \(os error 2\)" ,
93
93
):
94
94
test_microvm .spawn ()
@@ -102,7 +102,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
102
102
103
103
with pytest .raises (
104
104
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" ,
106
106
):
107
107
test_microvm .spawn ()
108
108
@@ -115,7 +115,7 @@ def test_exec_file_not_exist(uvm_plain, tmp_path):
115
115
116
116
with pytest .raises (
117
117
Exception ,
118
- match = rf"Jailer error: { pseudo_exec_file_path } is not executable" ,
118
+ match = rf"{ pseudo_exec_file_path } is not executable" ,
119
119
):
120
120
test_microvm .spawn ()
121
121
You can’t perform that action at this time.
0 commit comments