Files
manon 6635784422 fix(scripts): read the defaulted args in unity_test_summary
Commit e47ac34 ("Fix default path in unity test summarizer") moved the
result-directory and root-path defaults off ARGV and onto the args array
that ARGV.partition produces, but both readers were left on ARGV. The
defaults are therefore computed and discarded: running the summarizer
with no arguments raises NoMethodError on nil, and passing only a result
directory leaves root nil so failures print without the path prefix the
usage text promises. Passing an option such as --verbose also shifts the
option string into ARGV[0] and breaks the result glob.

Read args[0] and args[1] so the assigned defaults are the values used.

Add test/tests/test_unity_test_summary.rb covering both defaults; it runs
under the existing test:scripts task.

Signed-off-by: manon <[email protected]>
2026-09-09 12:28:38 +09:00
..
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00
2026-01-23 11:18:36 -05:00