#!/usr/bin/env ruby fork do exec "mage servers" end # Let the servers boot up sleep 1 test_pid = fork do exec "mage test" end Process.wait(test_pid) Process.kill('TERM', 0)