Skip to content

Commit

Permalink
resolve-crashes.py now "supports" resolving compiler_crashers_2 as well
Browse files Browse the repository at this point in the history
Swift SVN r29645
  • Loading branch information
slavapestov committed Jun 24, 2015
1 parent 7b2aa2c commit 786141f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/resolve-crashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ def execute_cmd(cmd):
os.system(cmd)

# The regular expression we use to match compiler-crasher lines.
regex = re.compile('.*Swift :: compiler_crashers/(.*\.swift).*')
regex = re.compile('.*Swift :: compiler_crashers(|_2)/(.*\.swift).*')

# Take the output of lit as standard input.
for line in sys.stdin:
match = regex.match(line)
if match:
filename=match.group(1)
suffix=match.group(1)
filename=match.group(2)

# Move the test over to the fixed suite.
from_filename = 'validation-test/compiler_crashers/%s' % (filename)
to_filename = 'validation-test/compiler_crashers_fixed/%s' % (filename)
from_filename = 'validation-test/compiler_crashers%s/%s' % (suffix, filename)
to_filename = 'validation-test/compiler_crashers%s_fixed/%s' % (suffix, filename)
git_mv_cmd = 'git mv %s %s' % (from_filename, to_filename)
execute_cmd(git_mv_cmd)

Expand Down

0 comments on commit 786141f

Please sign in to comment.