From 67c1dc4f82ac8f1063e721a92b9869ab26a9265b Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9sar=20Sagaert?= Date: Wed, 26 Mar 2025 19:42:45 +0100 Subject: [PATCH] fix: incorrect condition for warning about argument forwarding to test runner (#1916) --- src/alr/alr-commands-test.adb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alr/alr-commands-test.adb b/src/alr/alr-commands-test.adb index a2913ce5..96c570b8 100644 --- a/src/alr/alr-commands-test.adb +++ b/src/alr/alr-commands-test.adb @@ -102,8 +102,8 @@ package body Alr.Commands.Test is end; end if; - if not Args.Is_Empty - and then (Cmd.Jobs >= 0 or else All_Settings.Length > 1) + if All_Settings.Length > 1 + and then not (Args.Is_Empty and then Cmd.Jobs = -1) then Trace.Warning ("arguments cannot be forwarded to test runners when several " @@ -145,7 +145,6 @@ package body Alr.Commands.Test is case S.Runner.Kind is when Alire_Runner => Cmd.Requires_Workspace; - Trace.Always (Dirs.Current); Failures := Alire.Test_Runner.Run @@ -218,6 +217,7 @@ package body Alr.Commands.Test is "--jobs=", "Run up to N tests in parallel, or as many as there are processors" & " if 0", + Initial => -1, Default => -1, Argument => "N"); -- 2.39.5