Skip to content

Commit

Permalink
fan: exit with non-zero status on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelStrother authored and briandunn committed Aug 28, 2024
1 parent 6938132 commit f437653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/flatware/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def fan(*command)
exec({ 'TEST_ENV_NUMBER' => i.to_s }, command)
end
end
Process.waitall
success = Process.waitall.all? { |_pid, status| status.success? }
exit success ? 0 : 1
end

desc 'clear', 'kills all flatware processes'
Expand Down

0 comments on commit f437653

Please sign in to comment.