Skip to content

Commit

Permalink
Switch from Kernel.system to Kernel.spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Jan 8, 2025
1 parent ddb13eb commit e15e790
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/retest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e15e790

Please sign in to comment.