Changeset 37284
- Timestamp:
- Aug 21, 2014, 7:28:09 PM (12 years ago)
- Location:
- tags/ipp-pv3-20140717/ippScripts
- Files:
-
- 2 edited
-
Build.PL (modified) (1 diff)
-
scripts/sc_prepare_run.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140717/ippScripts/Build.PL
r37265 r37284 141 141 scripts/sc_prepare_stack.pl 142 142 scripts/sc_prepare_warp.pl 143 scripts/sc_prepare_run.pl 143 144 scripts/sc_remote_exec.pl 144 145 scripts/sc_retry_return.pl -
tags/ipp-pv3-20140717/ippScripts/scripts/sc_prepare_run.pl
r37282 r37284 78 78 79 79 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 80 run(command => $command, verbose => $verbose);80 run(command => $command, verbose => $verbose); 81 81 unless ($success) { 82 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);83 84 &my_die("Unable to run chiptool to determine stage parameters.", $remote_id, $error_code);82 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 83 84 &my_die("Unable to run chiptool to determine stage parameters.", $remote_id, $error_code); 85 85 } 86 86 my $MDlist = $mdcParser->parse(join "", @$stdout_buf) or 87 &my_die("Unable to determine component information.", $remote_id,$PS_EXIT_PROG_ERROR);87 &my_die("Unable to determine component information.", $remote_id,$PS_EXIT_PROG_ERROR); 88 88 $compData = parse_md_list($MDlist); 89 89 } … … 104 104 my $disk_return = $ipprc->file_resolve($uri_return,1); 105 105 106 my (undef, $remote_config) = uri_convert($uri_config); # Needs to be done after we've created it. 106 my %have_transfer = (); 107 my %have_check = (); 108 my %have_config = (); 109 my %have_generate = (); 110 my %have_return = (); 111 112 my (undef, $remote_config) = uri_convert($uri_config); # Needs to be done after we've created it. 107 113 108 114 open(TRANSFER, ">$disk_transfer") || &my_die("Couldn't open file? $disk_transfer",$chip_id,$PS_EXIT_SYS_ERROR); … … 125 131 open(INPUT, "$disk_transfer"); 126 132 while ($line = <INPUT>) { 127 print TRANSFER $line; 133 unless ($have_transfer{$line}) { 134 $have_transfer{$line} = 1; 135 print TRANSFER $line; 136 } 128 137 } 129 138 close (INPUT); … … 133 142 open(INPUT, "$disk_check"); 134 143 while ($line = <INPUT>) { 135 print CHECK $line; 144 unless ($have_check{$line}) { 145 $have_check{$line} = 1; 146 print CHECK $line; 147 } 136 148 } 137 149 close (INPUT); … … 141 153 open(INPUT, "$disk_config"); 142 154 while ($line = <INPUT>) { 143 print CONFIG $line; 155 unless ($have_config{$line}) { 156 $have_config{$line} = 1; 157 print CONFIG $line; 158 } 144 159 } 145 160 close (INPUT); … … 149 164 open(INPUT, "$disk_generate"); 150 165 while ($line = <INPUT>) { 151 print GENERATE $line; 166 unless ($have_generate{$line}) { 167 $have_generate{$line} = 1; 168 print GENERATE $line; 169 } 152 170 } 153 171 close (INPUT); … … 157 175 open(INPUT, "$disk_return"); 158 176 while ($line = <INPUT>) { 159 print RETURN $line; 177 unless ($have_return{$line}) { 178 $have_return{$line} = 1; 179 print RETURN $line; 180 } 160 181 } 161 182 close (INPUT); … … 223 244 my $ipp_disk= $ipprc->file_resolve( $neb_uri ); 224 245 my $remote_disk = $ipp_disk; 225 246 226 247 unless(defined($ipp_disk)) { 227 my_die();248 my_die(); 228 249 } 229 250 … … 244 265 245 266 carp($msg); 246 267 247 268 if (defined $id and not $no_update) { 248 my $command = "remotetool -updaterun -remote_id $id";249 $command .= " -fault $exit_code " if defined $exit_code;250 $command .= " -set_state $exit_state " if defined $exit_state;251 $command .= " -dbname $dbname " if defined $dbname;252 253 system($command);269 my $command = "remotetool -updaterun -remote_id $id"; 270 $command .= " -fault $exit_code " if defined $exit_code; 271 $command .= " -set_state $exit_state " if defined $exit_state; 272 $command .= " -dbname $dbname " if defined $dbname; 273 274 system($command); 254 275 } 255 276
Note:
See TracChangeset
for help on using the changeset viewer.
