Skip to content

Commit ceea806

Browse files
YO4hsbt
authored andcommitted
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.
1 parent 688c1f6 commit ceea806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/test-bundled-gems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
puts colorize.decorate(mesg, "skip")
134134
else
135135
failed << gem
136-
exit_code = $?.exitstatus if $?.exitstatus
136+
exit_code = 1
137137
end
138138
end
139139
end

0 commit comments

Comments
 (0)