Skip to content

Commit

Permalink
[pipelines] Change running with build script to not bail if one itera…
Browse files Browse the repository at this point in the history
…tion of building the stdlib with a pass disabled fails. Also only dump output upon failure.

Swift SVN r24328
  • Loading branch information
gottesmm committed Jan 9, 2015
1 parent 40d4710 commit 37d07b9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions utils/pass-pipeline/scripts/pipelines_build_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@

def run_build_script_with_data_file(build_script, data_file):
build_script_args = [build_script, DEFAULT_PRESENTS, 'extra_swift_args=^Swift$;-Xfrontend\;-external-pass-pipeline-filename\;-Xfrontend\;%s' % data_file]
sys.stdout.write("Running build script with: %s\n" % ' '.join(build_script_args))
subprocess.check_call(build_script_args)
sys.stdout.write("Running build script with: %s..." % ' '.join(build_script_args))
sys.stdout.flush()
p = subprocess.Popen(build_script_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output = p.stdout.readlines()
status = p.wait()
if status == 0:
sys.stdout.write(" Success!\n")
else:
sys.stdout.write(" Failure:\n")
sys.stdout.write(output)

def build_disable_slice_pipelines(**kwargs):
pipeline_range = range(len(PIPELINES))
Expand Down

0 comments on commit 37d07b9

Please sign in to comment.