-
-
Notifications
You must be signed in to change notification settings - Fork 761
rspec always return 1 when executed through DRb server #641
Comments
I tested this extensively when trying to reproduce this issue: #640 If you can provide a failing test case, please report back here and I'll re-open. Thanks. |
Gemfile source "https://rubygems.org"
gem "rspec"
gem 'spork' spec/test_spec.rb require 'spec_helper'
describe "simple rspec test" do
it "should just pass" do
end
end spec_helper.rb require 'rubygems'
require 'spork'
Spork.prefork do
end
Spork.each_run do
end
require 'rspec' I use ruby 1.8.7p358 on Windows (it is important, since on linux rspec does return 0)
Let me know if you need more information. |
@os97673, are you able to take a stab at fixing this? I have no Windows development environment that I can use; like you said, I can't reproduce it in Linux. |
well, I think I can try :) |
Thanks :D |
Any news, @os97673? |
sorry for delay, all "back to school" activities eat almost all my free time recently. |
I've filed sporkrb/spork#210 about this problem. |
Thanks so much @os97673. I'll close this issue and follow the sporkrb one. |
When I run rspec w/o Spork its's exit code behaves as expected (0 - passed, 1 - failed, and honor --failure-exit-code), but when I run tests using Spork it always exits with code 1.
It looks like the cause of the problem is in RSpec::Core::DRbCommandLine.run() which always returns result of spec_server.run(@options.drb_argv, err, out) which is IO and it looks like it is converted to 1 :(
The text was updated successfully, but these errors were encountered: