Skip to content

Commit eb0e15a

Browse files
committed
[test] Style fix for "Transform you-should-be-using-LLVM_DEBUG to Python"
Make the string a multi-line string. To avoid triggering the test itself with the message, interpolate the DEBUG part into the string.
1 parent 48d8ed0 commit eb0e15a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/Misc/you-should-be-using-LLVM_DEBUG.test-sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ if not os.path.exists(os.path.join(swift_src_root, '.git')):
1818
returncode = subprocess.call(
1919
['git', '-C', swift_src_root, 'grep', r'\bDEBUG[(]'])
2020
if returncode == 0: # We found some DEBUG in there.
21-
print('\n'
22-
'*** The DEBUG'
23-
'(...) macro is being renamed to LLVM_DEBUG(...);\n'
24-
'*** please use that instead.')
21+
print("""
22+
*** The {DEBUG}(...) macro is being renamed to LLVM_DEBUG(...);
23+
*** please use that instead.""".format(DEBUG='DEBUG'))
2524
sys.exit(1)
2625

2726
# If you see a failure in this test, that means you introduced a use of the

0 commit comments

Comments
 (0)