1#!/usr/bin/env ruby 2 3fork do 4 exec "mage servers" 5end 6 7# Let the servers boot up 8sleep 1 9 10test_pid = fork do 11 exec "mage test" 12end 13 14Process.wait(test_pid) 15Process.kill('TERM', 0)