Properly handle test cases terminated by signals in test-bundled-gems

Process::Status#exitstatus turn into nil when child process is signeled.
When exit_code was unchanged, test-bundled-gems.rb returned 0 and make was unable to detect the failure. Fix this.
This commit is contained in:
YO4 2025-10-03 22:04:13 +09:00 committed by Hiroshi SHIBATA
parent 688c1f6c5e
commit ceea8060e4
Notes: git 2025-12-24 02:00:23 +00:00

View File

@ -133,7 +133,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line|
puts colorize.decorate(mesg, "skip")
else
failed << gem
exit_code = $?.exitstatus if $?.exitstatus
exit_code = 1
end
end
end