@@ -164,6 +164,14 @@ pub(crate) fn process_reports(
164164 meta_files_by_path,
165165 } = args;
166166
167+ if exec_report_paths. is_empty ( ) {
168+ log:: error!( concat!(
169+ "no report paths specified; " ,
170+ "this command doesn't make sense without them!"
171+ ) ) ;
172+ return Err ( AlreadyReportedToCommandline ) ;
173+ }
174+
167175 let mut file_props_by_file = IndexMap :: < Utf8PathBuf , FileProps > :: default ( ) ;
168176 let mut entries_by_cts_path = IndexMap :: < String , EntryByCtsPath < ' _ > > :: default ( ) ;
169177 let mut other_entries_by_test = IndexMap :: < TestEntryPath < ' _ > , TestEntry > :: default ( ) ;
@@ -258,8 +266,6 @@ pub(crate) fn process_reports(
258266
259267 log:: debug!( "gathering reported test outcomes for reconciliation with metadata…" ) ;
260268
261- let using_reports = !exec_report_paths. is_empty ( ) ;
262-
263269 let ( exec_reports_sender, exec_reports_receiver) = channel ( ) ;
264270 exec_report_paths
265271 . into_par_iter ( )
@@ -445,7 +451,7 @@ pub(crate) fn process_reports(
445451 log:: info!( "new test entry: {test_entry_path:?}" )
446452 }
447453
448- if test_reported. is_empty ( ) && using_reports {
454+ if test_reported. is_empty ( ) {
449455 let test_entry_path = & test_entry_path;
450456 let msg = lazy_format ! ( "no entries found in reports for {:?}" , test_entry_path) ;
451457 match preset {
@@ -518,7 +524,7 @@ pub(crate) fn process_reports(
518524 reported : subtest_reported,
519525 } = subtest;
520526
521- if subtest_reported. is_empty ( ) && using_reports {
527+ if subtest_reported. is_empty ( ) {
522528 let test_entry_path = & test_entry_path;
523529 let subtest_name = & subtest_name;
524530 let msg = lazy_format ! (
0 commit comments