[rspec-users] mystery problem with svn post-commit script running rspec tests
Courtenay
court3nay at gmail.com
Tue Jun 12 05:32:36 EDT 2007
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
>
More information about the rspec-users
mailing list