Skip to content
  • Michał Kępień's avatar
    Simplify trailing period handling in system tests · da2c1b74
    Michał Kępień authored
    Windows systems do not allow a trailing period in file names while Unix
    systems do.  When BIND system tests are run, the $TP environment
    variable is set to an empty string on Windows systems and to "." on Unix
    systems.  This environment variable is then used by system test scripts
    for handling this discrepancy properly.
    
    In multiple system test scripts, a variable holding a zone name is set
    to a string with a trailing period while the names of the zone's
    corresponding dlvset-* and/or dsset-* files are determined using
    numerous sed invocations like the following one:
    
        dlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
    
    In order to improve code readability, use zone names without trailing
    periods and replace sed invocations with variable substitutions.
    
    To retain local consistency, also remove the trailing period from
    certain other zone names used in system tests that are not subsequently
    processed using sed.
    da2c1b74