I have a spec file with the following code and i run it using rake
describe 'Running Reselience test', test_execute: true do
it "running deploy build access service and manage" do
system("for i in {1..3}; do sleep 5; echo $i; done &")
system("for i in {10..13}; do sleep 5; echo $i; done &")
end
end
I am getting the following error in command line when i run the above spec file
i was unexpected at this time.
i was unexpected at this time.
How do i run the above batch commands without getting the above error?