Changeset d65f92c for tests/pybin/settings.py
- Timestamp:
- Aug 15, 2019, 10:21:36 AM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 5c4a473
- Parents:
- 1ee048fd
- File:
-
- 1 edited
-
tests/pybin/settings.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
r1ee048fd rd65f92c 11 11 SRCDIR = os.path.abspath(config.SRCDIR) 12 12 BUILDDIR = os.path.abspath(config.BUILDDIR) 13 distribute = config.DISTRIBUTE 13 14 os.chdir(testpath) 14 15 … … 85 86 self.string = "debug" if value else "no debug" 86 87 self.flags = """DEBUG_FLAGS=%s""" % ("-debug -O0" if value else "-nodebug -O2") 88 self.path = "debug" if value else "nodebug" 87 89 88 90 class Install: 89 91 def __init__(self, value): 92 if value: 93 distribute = False 94 90 95 self.string = "installed" if value else "in-tree" 91 96 self.flags = """INSTALL_FLAGS=%s""" % ("" if value else "-in-tree") … … 113 118 global timeout 114 119 global output_width 120 global distcc 115 121 116 122 dry_run = options.dry_run … … 122 128 timeout = Timeouts(options.timeout, options.global_timeout) 123 129 output_width = 24 130 distcc = "DISTCC_CFA_PATH=~/.cfadistcc/%s/cfa" % tools.config_hash() 124 131 132 if distribute and not os.environ.get('DISTCC_LOG'): 133 os.putenv('DISTCC_LOG', os.path.join(BUILDDIR, 'distcc_error.log')) 125 134 126 135 def update_make_cmd(force, jobs): … … 131 140 def validate(): 132 141 errf = os.path.join(BUILDDIR, ".validate.err") 133 make_ret, out = tools.make( ".validate", error_file = errf, output =subprocess.DEVNULL, error=subprocess.DEVNULL )142 make_ret, out = tools.make( ".validate", error_file = errf, output_file=subprocess.DEVNULL, error=subprocess.DEVNULL ) 134 143 if make_ret != 0: 135 144 with open (errf, "r") as myfile:
Note:
See TracChangeset
for help on using the changeset viewer.