Skip to content

Commit 576a246

Browse files
committed
test: fix hardlink-or-copy
The substitution has captures which needs to be substituted.
1 parent 8e38b67 commit 576a246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ if hasattr(config, 'target_cc_options'):
12771277

12781278
config.substitutions.append(
12791279
(r'%hardlink-or-copy\(from: *(.*), *to: *(.*)\)',
1280-
r'ln \1 \2 || cp \1 \2'))
1280+
SubstituteCaptures(r'ln \1 \2 || cp \1 \2')))
12811281

12821282
config.substitutions.append(('%utils', config.swift_utils))
12831283
config.substitutions.append(('%line-directive', '%r %s' % (sys.executable, config.line_directive)))

0 commit comments

Comments
 (0)