From aa75b45645674dcb587def8c67a0379ef0517122 Mon Sep 17 00:00:00 2001 From: Jonathan del Strother Date: Tue, 6 Aug 2024 11:03:28 +0000 Subject: [PATCH] fan: exit with non-zero status on failure --- lib/flatware/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/flatware/cli.rb b/lib/flatware/cli.rb index 6283b1e..8d3a1b9 100644 --- a/lib/flatware/cli.rb +++ b/lib/flatware/cli.rb @@ -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'