Changeset a45fc7b for tests/pybin/settings.py
- Timestamp:
- Mar 27, 2019, 2:44:34 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 1241851, ce3d305
- Parents:
- 86fb8f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
r86fb8f2 ra45fc7b 1 1 import os 2 import subprocess 2 3 import sys 3 4 from . import tools … … 82 83 def __init__(self, value): 83 84 self.string = "debug" if value else "no debug" 84 self.flags = """DEBUG_FLAGS= "%s"""" % ("-debug -O0" if value else "-nodebug -O2")85 self.flags = """DEBUG_FLAGS=%s""" % ("-debug -O0" if value else "-nodebug -O2") 85 86 86 87 class Install: 87 88 def __init__(self, value): 88 89 self.string = "installed" if value else "in-tree" 89 self.flags = """INSTALL_FLAGS= "%s"""" % ("" if value else "-in-tree")90 self.flags = """INSTALL_FLAGS=%s""" % ("" if value else "-in-tree") 90 91 91 92 class Timeouts: … … 114 115 dry_run = options.dry_run 115 116 generating = options.regenerate_expected 116 make = 'make'117 make = ['make'] 117 118 debug = Debug(options.debug) 118 119 install = Install(options.install) … … 125 126 global make 126 127 127 make = "make" if not force else ("make -j%i" % jobs)128 make = ['make'] if not force else ['make', "-j%i" % jobs] 128 129 129 130 def validate(): 130 131 errf = os.path.join(BUILDDIR, ".validate.err") 131 make_ret, _ = tools.make( ".validate", error_file = errf, redirects = "2> /dev/null 1> /dev/null",)132 make_ret, out = tools.make( ".validate", error_file = errf, output=subprocess.DEVNULL, error=subprocess.DEVNULL ) 132 133 if make_ret != 0: 133 134 with open (errf, "r") as myfile:
Note: See TracChangeset
for help on using the changeset viewer.