diff --git a/lib/retest/runner.rb b/lib/retest/runner.rb index 8d6e52d..8cae55c 100644 --- a/lib/retest/runner.rb +++ b/lib/retest/runner.rb @@ -86,9 +86,11 @@ def sync(added:, removed:) def system_run(command) log("\n") - result = system(command) ? :tests_pass : :tests_fail + pid = spawn(command) + Process.wait + result = $?.exitstatus.zero? changed - notify_observers(result) + notify_observers(result ? :tests_pass : :test_fail) end def log(message)