common/tools/ats/ats_specialise_test_drop.pl
changeset 819 3df98b3b0a8d
parent 730 9837304abcc6
child 820 2a9e6403efaf
equal deleted inserted replaced
818:a9bd5a067865 819:3df98b3b0a8d
   116 # Parse the input XML into hashref.
   116 # Parse the input XML into hashref.
   117 my $test_drop = XMLin("./$xml_in", keeproot => 1,
   117 my $test_drop = XMLin("./$xml_in", keeproot => 1,
   118     forcearray => [ 'name', 'id','owner','priority','buildid','postaction','type','target','device', 'property', 'command', 'param'],#
   118     forcearray => [ 'name', 'id','owner','priority','buildid','postaction','type','target','device', 'property', 'command', 'param'],#
   119         keyattr => [] );
   119         keyattr => [] );
   120     
   120     
   121         
       
   122 # Insert the specified test drop name, if any.
   121 # Insert the specified test drop name, if any.
   123 $test_drop->{'test'}->{'name'}->[0] = $test_drop_name, if $test_drop_name;
   122 $test_drop->{'test'}->{'name'}->[0] = $test_drop_name, if $test_drop_name;
   124 # Insert the specified build id, if any.
   123 # Insert the specified build id, if any.
   125 $test_drop->{'test'}->{'buildid'}->[0] = $build_id, if $build_id;
   124 $test_drop->{'test'}->{'buildid'}->[0] = $build_id, if $build_id;
       
   125 # Insert the FileStoreAction parameter
       
   126 my $postaction_params = $test_drop->{'test'}->{'postAction'}->[0]->{'params'}->{'param'};
       
   127 $postaction_params->[1] = { 'name' => "to-folder", 'value' => "\\\\localhost\\ats3_testdrop_arrivals\\reports\\" . $test_drop_name };
   126 
   128 
   127 if ($host_name) { # Also insert specified host name
   129 if ($host_name) { # Also insert specified host name
   128 	my $devices = $test_drop->{'test'}->{'target'}->[0]->{'device'};
   130 	my $devices = $test_drop->{'test'}->{'target'}->[0]->{'device'};
   129     
   131     
   130     foreach my $device (@{$devices}) {
   132     foreach my $device (@{$devices}) {