NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
496 stars 190 forks source link

Fix #5162 - Capture `exit` from Ruby #5166

Closed jmarrec closed 5 months ago

jmarrec commented 5 months ago

Pull request overview

Note: this does fix the Minitest return value, even with the minitest/autorun using at_exit

https://github.com/minitest/minitest/blob/ea9caafc0754b1d6236a490d59e624b53209734a/lib/minitest.rb#L66-L89

Pull Request Author

Labels:

Review Checklist

This will not be exhaustively relevant to every PR.

kbenne commented 5 months ago

I think we might get some new failures from ctest as a result of this. (which is a feature not a bug of course)

jmarrec commented 5 months ago

Hummmm I no longer have any minitest output.

test_minitest.rb

require 'minitest'
require 'minitest/autorun'

class MyTest < Minitest::Test
  def test_fail
    assert 0 == 1
  end
end
wenyikuang commented 5 months ago

Eventually I need build the binary from scratch so its not a big difference.

jmarrec commented 5 months ago

I'd say wait, I have some issues with it. Maybe it'll go in RC2.

e52af4dcfc5a5781df68e96ed3b4dc3ad13b9c75 kinda fixes it, but I don't like it one bit

Minitest failures still end up exiting with an exitcode = 0 obviously...

ci-commercialbuildings commented 5 months ago

CI Results for 3b70376ba8ec9bbaefc1abfc097e1bce75773ef5: