Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r99581ee r9509a412  
    9898                self.path   = "debug" if value else "nodebug"
    9999
    100 class AST:
    101         def __init__(self, ast):
    102                 if ast == "new":
    103                         self.string = "New AST"
    104                         self.flags  = """AST_FLAGS=-XCFA,--new-ast"""
    105                 elif ast == "old":
    106                         self.string = "Old AST"
    107                         self.flags  = """AST_FLAGS=-XCFA,--old-ast"""
    108                 elif ast == None:
    109                         self.string = "Default AST (%s)" % ("new" if config.NEWAST else "old")
    110                         self.flags  = """AST_FLAGS="""
    111                 else:
    112                         print("""ERROR: Invalid ast configuration, must be "old", "new" or left unspecified, was %s""" % (value), file=sys.stderr)
    113 
    114100class Install:
    115101        def __init__(self, value):
     
    134120
    135121def init( options ):
    136         global all_ast
    137122        global all_arch
    138123        global all_debug
    139124        global all_install
    140         global ast
    141125        global arch
     126        global archive
     127        global continue_
    142128        global debug
    143         global archive
    144         global install
    145 
    146         global continue_
    147129        global dry_run
    148130        global generating
     131        global install
    149132        global make
    150133        global output_width
     
    152135        global timeout2gdb
    153136
    154         all_ast      = [AST(o)          for o in list(dict.fromkeys(options.ast    ))] if options.ast  else [AST(None)]
    155137        all_arch     = [Architecture(o) for o in list(dict.fromkeys(options.arch   ))] if options.arch else [Architecture(None)]
    156138        all_debug    = [Debug(o)        for o in list(dict.fromkeys(options.debug  ))]
Note: See TracChangeset for help on using the changeset viewer.