Skip to content

Commit

Permalink
fix: make test actions run once
Browse files Browse the repository at this point in the history
  • Loading branch information
AldanTanneo committed Nov 14, 2024
1 parent 15addad commit fde4c81
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions src/alr/alr-commands-test.adb
Original file line number Diff line number Diff line change
Expand Up @@ -317,24 +317,18 @@ package body Alr.Commands.Test is
else R.Base_Folder))
with Unreferenced;
begin
for Action of R.On_Platform_Actions
(Platform.Properties,
(Alire.Properties.Actions.Test => True,
others => False))
loop
Alire.Properties.Actions.Executor.Execute_Actions
(Release => R,
Env => Platform.Properties,
Moment => Alire.Properties.Actions.Test,
Capture => True,
Err_To_Out => True,
Code => Exit_Code,
Output => Output);

if Exit_Code /= 0 then
raise Child_Failed;
end if;
end loop;
Alire.Properties.Actions.Executor.Execute_Actions
(Release => R,
Env => Platform.Properties,
Moment => Alire.Properties.Actions.Test,
Capture => True,
Err_To_Out => True,
Code => Exit_Code,
Output => Output);

if Exit_Code /= 0 then
raise Child_Failed;
end if;
end;
end Custom_Test;

Expand Down

0 comments on commit fde4c81

Please sign in to comment.