Module: SimpleCov::CLI::Affected::SpawnedRunner

Extended by:
SpawnedRunner
Included in:
SpawnedRunner
Defined in:
lib/simplecov/cli/affected/runner.rb

Overview

Starts the runner at the repository root, since the selection's paths are relative to it, and answers the runner's exit status.

Instance Method Summary collapse

Instance Method Details

#call(command, root) ⇒ Object



13
14
15
16
# File 'lib/simplecov/cli/affected/runner.rb', line 13

def call(command, root)
  _, status = Process.wait2(spawn(*command, chdir: root))
  status.exitstatus || 1
end