- Timestamp:
- Sep 12, 2019, 11:00:28 AM (5 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
- Children:
- 31d8f4d
- Parents:
- 6716d78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
r6716d78 reea20cd 23 23 24 24 # helper functions to run terminal commands 25 def sh(*cmd, timeout = False, output_file = None, input_file = None, input_text = None, error = subprocess.STDOUT ):25 def sh(*cmd, timeout = False, output_file = None, input_file = None, input_text = None, error = subprocess.STDOUT, ignore_dry_run = False): 26 26 cmd = list(cmd) 27 27 … … 30 30 31 31 # if this is a dry_run, only print the commands that would be ran 32 if settings.dry_run :32 if settings.dry_run and not ignore_dry_run: 33 33 cmd = "{} cmd: {}".format(os.getcwd(), ' '.join(cmd)) 34 34 if output_file and not isinstance(output_file, int): … … 287 287 distcc_hash = os.path.join(settings.SRCDIR, '../tools/build/distcc_hash') 288 288 config = "%s-%s" % (settings.arch.target, settings.debug.path) 289 _, out = sh(distcc_hash, config, output_file=subprocess.PIPE )289 _, out = sh(distcc_hash, config, output_file=subprocess.PIPE, ignore_dry_run=True) 290 290 return out.strip() 291 291
Note: See TracChangeset
for help on using the changeset viewer.