Skip to content

Commit fd11da5

Browse files
authored
resolve-crashes.py: remove "REQUIRES: asserts" as well (#13215)
1 parent c0ceb7a commit fd11da5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: utils/resolve-crashes.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ def execute_cmd(cmd):
3535
git_mv_cmd = 'git mv %s %s' % (from_filename, to_filename)
3636
execute_cmd(git_mv_cmd)
3737

38-
# Replace "not --crash" with "not", and remove XFAIL lines.
38+
# Replace "not --crash" with "not".
3939
sed_replace_not_cmd = 'sed -e "s/not --crash/not/" -i "" %s' % (
4040
to_filename)
4141
execute_cmd(sed_replace_not_cmd)
4242

4343
# Remove "// XFAIL: whatever" lines.
44-
sed_remove_xfail_cmd = 'sed -e "s/^\\/\\/.*XFAIL.*$//g" -i "" %s' % (
44+
sed_remove_xfail_cmd = 'sed -e "s|^//.*XFAIL.*$||g" -i "" %s' % (
4545
to_filename)
4646
execute_cmd(sed_remove_xfail_cmd)
4747

48+
# Remove "// REQUIRES: asserts" lines.
49+
sed_remove_requires_asserts_cmd = \
50+
'sed -e "s|^//.*REQUIRES: asserts.*$||g" -i "" %s' % (to_filename)
51+
execute_cmd(sed_remove_requires_asserts_cmd)
52+
4853
# "git add" the result.
4954
git_add_cmd = 'git add %s' % (to_filename)
5055
execute_cmd(git_add_cmd)

0 commit comments

Comments
 (0)