Ignore:
Timestamp:
Feb 27, 2008, 10:00:57 AM (10 years ago)
Author:
afb@…
Message:

add target_state variable patch from raimue, for targets that don't need state (#13458)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r32832 r34513  
    10391039    set skipped 0
    10401040    set procedure [ditem_key $ditem procedure]
     1041           
     1042    if {[ditem_key $ditem state] != "no"} {
     1043        set target_state_fd [open_statefile]
     1044    }
     1045       
    10411046    if {$procedure != ""} {
    10421047        set name [ditem_key $ditem name]
     
    10491054            # Skip the step if required and explain why through ui_debug.
    10501055            # 1st case: the step was already done (as mentioned in the state file)
    1051             if {[check_statefile target $name $target_state_fd]} {
     1056            if {[ditem_key $ditem state] != "no"
     1057                    && [check_statefile target $name $target_state_fd]} {
    10521058                ui_debug "Skipping completed $name ($portname)"
    10531059                set skipped 1
     
    12341240    }
    12351241   
     1242    if {[ditem_key $ditem state] != "no"} {
     1243        close $target_state_fd
     1244    }
     1245
    12361246    return $result
    12371247}
     
    12861296    }
    12871297   
    1288     # Restore the state from a previous run.
    1289     set target_state_fd [open_statefile]
    1290    
    12911298    set dlist [dlist_eval $dlist "" target_run]
    12921299   
     
    13031310    }
    13041311   
    1305     close $target_state_fd
    13061312    return $result
    13071313}
     
    15651571    # - Skip this test if performing a clean or submit.
    15661572    # - Skip this test if ports_force was specified.
    1567    
    1568     if { [lsearch "clean submit" $target] < 0 &&
     1573   
     1574    # TODO: Don't hardcode this list of targets here,
     1575    #       check for [ditem_key $mport state] == "no" somewhere else instead
     1576    if { [lsearch "clean submit lint livecheck" $target] < 0 &&
    15691577        !([info exists ports_force] && $ports_force == "yes")} {
    15701578       
Note: See TracChangeset for help on using the changeset viewer.