Changeset 34892 for trunk/ippScripts/scripts/ipp_cleanup.pl
- Timestamp:
- Jan 8, 2013, 3:30:15 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_cleanup.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_cleanup.pl
r34773 r34892 203 203 # loop over all of the imfiles, determine the path_base and class_id for each 204 204 my $num_errors = 0; 205 my $num_updated = 0; 205 206 foreach my $imfile (@$imfiles) { 206 207 my $class_id = $imfile->{class_id}; … … 323 324 } 324 325 set_destreak_goto_cleaned(); 326 $num_updated++; 325 327 } 326 328 } else { … … 351 353 } 352 354 } 353 print "Cleanup completed for chip_id $stage_id."; 355 if ($num_updated eq 0 and $num_errors eq 0) { 356 # no chips were updated by this procedssing so set state to $done_state 357 my $command = "$chiptool -chip_id $stage_id -updaterun -set_state $done_state"; 358 $command .= " -dbname $dbname" if defined $dbname; 359 360 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 361 run(command => $command, verbose => $verbose); 362 unless ($success) { 363 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 364 &my_die("Unable to perform chiptool: $error_code", "chip", $stage_id, $error_code); 365 } 366 } 367 print "Cleanup completed for chip_id $stage_id. num_updated: $num_updated"; 354 368 print " num_errors: $num_errors" if $num_errors; 355 369 print "\n"; … … 497 511 my @files = (); 498 512 my $num_errors = 0; 513 my $num_updated = 0; 499 514 foreach my $skyfile (@$skyfiles) { 500 515 my $path_base = $skyfile->{path_base}; … … 599 614 600 615 set_destreak_goto_cleaned(); 616 $num_updated++; 601 617 } 602 618 … … 625 641 } 626 642 } 627 print "Cleanup completed for warp_id $stage_id."; 628 print " num_errors: $num_errors" if $num_errors; 643 if ($num_updated eq 0 and $num_errors eq 0) { 644 # no skycells were updated by this procedssing so set state to $done_state 645 my $command = "$warptool -warp_id $stage_id -updaterun -set_state $done_state"; 646 $command .= " -dbname $dbname" if defined $dbname; 647 648 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 649 run(command => $command, verbose => $verbose); 650 unless ($success) { 651 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 652 &my_die("Unable to perform warptool: $error_code", "warp", $stage_id, $error_code); 653 } 654 } 655 print "Cleanup completed for warp_id $stage_id. num_updated: $num_updated"; 656 print " num_errors: $num_errors" if $num_errors; 629 657 print "\n"; 630 658 exit 0; … … 802 830 803 831 my $num_errors = 0; 832 my $num_updated = 0; 804 833 my @files = (); 805 834 foreach my $skyfile (@{ $skyfiles }) { … … 926 955 } 927 956 set_destreak_goto_cleaned(); 957 $num_updated++; 928 958 } 929 959 … … 953 983 } 954 984 } 955 print "Cleanup completed for diff_id $stage_id."; 985 if ($num_updated eq 0 and $num_errors eq 0) { 986 # no skycells were updated by this procedssing so set state to $done_state 987 my $command = "$difftool -diff_id $stage_id -updaterun -set_state $done_state"; 988 $command .= " -dbname $dbname" if defined $dbname; 989 990 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 991 run(command => $command, verbose => $verbose); 992 unless ($success) { 993 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 994 &my_die("Unable to perform difftool: $error_code", "diff", $stage_id, $error_code); 995 } 996 } 997 print "Cleanup completed for diff_id $stage_id. num_updated: $num_updated"; 956 998 print " num_errors: $num_errors" if $num_errors; 957 999 print "\n";
Note:
See TracChangeset
for help on using the changeset viewer.
