epics-extensions / WeTest

Test automation utility for EPICS modules (from YAML configuration to PDF test reports)
Other
8 stars 2 forks source link

warning "Unknown macro" in a list of list but working at the end #42

Open vnadot opened 4 years ago

vnadot commented 4 years ago

I got a warning about my macro CURRENT. However, weTest executes the script with CURRENT = 5.

Non-compulsory validation failed:
 - Unknown macro "CURRENT" (2 occurences)
include:
    - - 'wetest/generic/specific/weTest_functional_basicPowerSupply.yaml'
      - CURRENT:        5
      - TEST_TITLE:     "Set HV in nominal mode"
        P:              "${P_EIS}:HVPS-1:"
        DELAY:          ${DELAY}
        # config
        VOLTAGE:          20 # Volts
        CURRENT:          ${CURRENT}
        DELAY_RAMP_UP:    1 # sec
        # check desired output (measured value)
        GET_DESIRED_OUTPUT:     "IMes"  
        DESIRED_OUTPUT:         ${CURRENT} 
        DESIRED_OUTPUT_MARGIN:  1 # %  
gohierf commented 4 years ago

Apparently the problem does not come from the redefinition of CURRENT CURRENT: ${CURRENT}