Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 11:17 AM, Student wrote: forever.sh: while true ; do sleep 5 ; done tc_forks.rb 2.times do fork {`nohup sh forever.sh &`} end describe "We can do tests in the air" do it "Here is the first test" do 1.should not_raise 1.should_not raise_error end end spec tc_

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
forever.sh: while true ; do sleep 5 ; done tc_forks.rb 2.times do fork {`nohup sh forever.sh &`} end describe "We can do tests in the air" do it "Here is the first test" do 1.should not_raise end end spec tc_forks_spec.rb nohup: redirecting stderr to stdout nohup: redirecting stderr

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Ashley Moran
On Oct 29, 2009, at 12:28 pm, Student wrote: No autoscript here. I don't doubt that there are wrappers that might handle it, I was going for a solution in a bare rspec environment. Still not sure I understand the problem. Can you explain what you mean by "getting them running without causin

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
No autoscript here. I don't doubt that there are wrappers that might handle it, I was going for a solution in a bare rspec environment. datadir was missed in the transposition--it should have been data [:dir]. Nathan On Oct 29, 5:22 am, Ashley Moran wrote: > On Oct 29, 2009, at 3:09 am, Stud

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Ashley Moran
On Oct 29, 2009, at 3:09 am, Student wrote: I am writing a script that reads connection information from a config file, and based, on what it finds, connects to multiple mysql servers and performs tasks. To test this script, I need to set up test servers, but getting them running without causi

[rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-28 Thread Student
I am writing a script that reads connection information from a config file, and based, on what it finds, connects to multiple mysql servers and performs tasks. To test this script, I need to set up test servers, but getting them running without causing the tests to be rerun when they stop is a bit