Joe Van Dyk
2007-Jun-09 07:42 UTC
[rspec-users] mystery problem with svn post-commit script running rspec tests
So, just spent seven straight hours on this. I have a post-commit svn script that runs all my tests. Emails me if something goes wrong. One of the lines looks like: @output = `rake test RAILS_ENV=test` The output from the rspec tests don''t seem to appear in @output. Why would that be? Oddly enough, that only seems to happen when the script is ran from svn''s post-commit hook. When I run the script manually, the rspec test results show up in @output. Joe
Joe Van Dyk
2007-Jun-09 07:56 UTC
[rspec-users] mystery problem with svn post-commit script running rspec tests
Oh, this is a Rails project, by the way. Do the specs mess around with stdout or stderr? Joe On 6/9/07, Joe Van Dyk <joevandyk at gmail.com> wrote:> So, just spent seven straight hours on this. > > I have a post-commit svn script that runs all my tests. Emails me if > something goes wrong. > > One of the lines looks like: > @output = `rake test RAILS_ENV=test` > > The output from the rspec tests don''t seem to appear in @output. Why > would that be? Oddly enough, that only seems to happen when the > script is ran from svn''s post-commit hook. When I run the script > manually, the rspec test results show up in @output. > > Joe >
Courtenay
2007-Jun-12 09:32 UTC
[rspec-users] mystery problem with svn post-commit script running rspec tests
probably. best to use popen3 to capture those. stdin, stdout, stderr = Open3.popen3(''nroff -man'') On 6/9/07, Joe Van Dyk <joevandyk at gmail.com> wrote:> Oh, this is a Rails project, by the way. > > Do the specs mess around with stdout or stderr? > > Joe > > On 6/9/07, Joe Van Dyk <joevandyk at gmail.com> wrote: > > So, just spent seven straight hours on this. > > > > I have a post-commit svn script that runs all my tests. Emails me if > > something goes wrong. > > > > One of the lines looks like: > > @output = `rake test RAILS_ENV=test` > > > > The output from the rspec tests don''t seem to appear in @output. Why > > would that be? Oddly enough, that only seems to happen when the > > script is ran from svn''s post-commit hook. When I run the script > > manually, the rspec test results show up in @output. > > > > Joe > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Possibly Parallel Threads
- Open3.popen3 oddity
- Open3.popen3 bug
- [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
- [ win32utils-Patches-4121 ] Make it possible to read process exit status
- [ win32utils-Patches-4603 ] [open3] set $? and return Process::Status with block call