Class: HotCell::Fixtures::Spawns
- Defined in:
- lib/hot_cell/test_operations.rb
Overview
Starts a grandchild that outlives the worker, and reports its pid so a test can ask whether the
deadline reached it. spawn rather than a tool, so this needs no toolchain installed.
Constant Summary
Constants inherited from Operation
Instance Method Summary collapse
Methods inherited from Operation
abstract_operation, abstract_operation?, before_fork, before_worker_boot, inherited, limits, operation, operation_name, #run_tool, unreadable
Instance Method Details
#perform(_inputs, _outputs) ⇒ Object
239 240 241 242 |
# File 'lib/hot_cell/test_operations.rb', line 239 def perform(_inputs, _outputs) pid = spawn("sleep", "60") tell_and_wait pid end |