@@ -39,12 +39,12 @@ package body Tester.Tests is
3939 Max_Wait : constant := 16.0 ;
4040 -- Max number of seconds to wait on a given snippet
4141
42- type Command_Kind is (Start, Stop, Send, Shell, Append_To_Env , Comment);
42+ type Command_Kind is (Start, Stop, Send, Shell, Prepend_To_Env , Comment);
4343
44- procedure Do_Append_To_Env
44+ procedure Do_Prepend_To_Env
4545 (Self : in out Test'Class;
4646 Command : GNATCOLL.JSON.JSON_Value);
47- -- Implementation of `append_to_env ` command
47+ -- Implementation of `prepend_to_env ` command
4848
4949 procedure Do_Start
5050 (Self : in out Test'Class;
@@ -167,11 +167,11 @@ package body Tester.Tests is
167167 GNAT.OS_Lib.OS_Exit (1 );
168168 end Do_Abort ;
169169
170- -- --------------------
171- -- Do_Append_To_Env --
172- -- --------------------
170+ -- ---------------------
171+ -- Do_Prepend_To_Env --
172+ -- ---------------------
173173
174- procedure Do_Append_To_Env
174+ procedure Do_Prepend_To_Env
175175 (Self : in out Test'Class;
176176 Command : GNATCOLL.JSON.JSON_Value)
177177 is
@@ -186,16 +186,16 @@ package body Tester.Tests is
186186 if Self.Environment.Contains (Name) then
187187 Self.Environment.Insert
188188 (Name,
189- Self.Environment. Value (Name)
189+ Value.Get
190190 & GNAT.OS_Lib.Path_Separator &
191- Value.Get );
191+ Self.Environment.Value (Name) );
192192 else
193193 Self.Environment.Insert (Name, Value.Get);
194194 end if ;
195195 end On_Key ;
196196 begin
197197 Command.Map_JSON_Object (On_Key'Access );
198- end Do_Append_To_Env ;
198+ end Do_Prepend_To_Env ;
199199
200200 -- -----------
201201 -- Do_Fail --
@@ -926,8 +926,8 @@ package body Tester.Tests is
926926 Self.Do_Stop (Value);
927927 when Send =>
928928 Self.Do_Send (Value);
929- when Append_To_Env =>
930- Self.Do_Append_To_Env (Value);
929+ when Prepend_To_Env =>
930+ Self.Do_Prepend_To_Env (Value);
931931 when Shell =>
932932 Self.Do_Shell (Value);
933933 when Comment =>
0 commit comments