File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -780,7 +780,10 @@ int main(int argc, const char **argv)
780780
781781 lkl_host_ops .print = lkl_test_log ;
782782
783- lkl_init (& lkl_host_ops );
783+ if (lkl_init (& lkl_host_ops ) < 0 ) {
784+ printf ("%s\n" , lkl_test_get_log ());
785+ return 1 ;
786+ }
784787
785788 ret = lkl_test_run (tests , sizeof (tests )/sizeof (struct lkl_test ),
786789 "boot" );
Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ int main(int argc, const char **argv)
109109
110110 lkl_host_ops .print = lkl_test_log ;
111111
112- lkl_init (& lkl_host_ops );
112+ if (lkl_init (& lkl_host_ops ) < 0 ) {
113+ printf ("%s\n" , lkl_test_get_log ());
114+ return 1 ;
115+ }
113116
114117 ret = lkl_test_run (tests , sizeof (tests ) / sizeof (struct lkl_test ),
115118 "disk-vfio-pci %s" , cla .fstype );
Original file line number Diff line number Diff line change @@ -189,7 +189,10 @@ int main(int argc, const char **argv)
189189
190190 lkl_host_ops .print = lkl_test_log ;
191191
192- lkl_init (& lkl_host_ops );
192+ if (lkl_init (& lkl_host_ops ) < 0 ) {
193+ printf ("%s\n" , lkl_test_get_log ());
194+ return 1 ;
195+ }
193196
194197 ret = lkl_test_run (tests , sizeof (tests )/sizeof (struct lkl_test ),
195198 "disk %s" , cla .fstype );
You can’t perform that action at this time.
0 commit comments