aboutsummaryrefslogtreecommitdiff
path: root/llvm_tools
diff options
context:
space:
mode:
authorSalud Lemus <saludlemus@google.com>2019-07-22 17:07:10 -0700
committerSalud Lemus <saludlemus@google.com>2019-07-23 00:14:13 +0000
commit8e8a076a150b9117737c91301f1fb69bb1660fc4 (patch)
tree929f845275f06a9e5005285d94bb2d6b04e6ebe9 /llvm_tools
parentd6e082dbdd0cc4fa925cb950b0524db8a03521ab (diff)
downloadtoolchain-utils-8e8a076a150b9117737c91301f1fb69bb1660fc4.tar.gz
LLVM tools: Changed comment after 'LLVM_NEXT_HASH'
Some unittests were changed as well to affect this change. BUG=None TEST='./update_chromeos_llvm_next_unittest.py' passes Change-Id: I179ae679eaac7f34c72c688e6ed15af79d8d6749 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1714124 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Salud Lemus <saludlemus@google.com>
Diffstat (limited to 'llvm_tools')
-rwxr-xr-xllvm_tools/update_chromeos_llvm_next_hash.py3
-rwxr-xr-xllvm_tools/update_chromeos_llvm_next_hash_unittest.py8
2 files changed, 5 insertions, 6 deletions
diff --git a/llvm_tools/update_chromeos_llvm_next_hash.py b/llvm_tools/update_chromeos_llvm_next_hash.py
index 9733f7bf..65da91c2 100755
--- a/llvm_tools/update_chromeos_llvm_next_hash.py
+++ b/llvm_tools/update_chromeos_llvm_next_hash.py
@@ -265,8 +265,7 @@ def ReplaceLLVMNextHash(ebuild_lines, is_updated, llvm_regex, llvm_hash,
for cur_line in ebuild_lines:
if not is_updated and llvm_regex.search(cur_line):
# Update the LLVM next hash and revision number.
- cur_line = 'LLVM_NEXT_HASH=\"%s\" # EGIT_COMMIT r%d\n' % (llvm_hash,
- llvm_version)
+ cur_line = 'LLVM_NEXT_HASH=\"%s\" # r%d\n' % (llvm_hash, llvm_version)
is_updated = True
diff --git a/llvm_tools/update_chromeos_llvm_next_hash_unittest.py b/llvm_tools/update_chromeos_llvm_next_hash_unittest.py
index f3096f2e..1b5ed455 100755
--- a/llvm_tools/update_chromeos_llvm_next_hash_unittest.py
+++ b/llvm_tools/update_chromeos_llvm_next_hash_unittest.py
@@ -207,7 +207,7 @@ class UpdateLLVMNextHashTest(unittest.TestCase):
os.write(
ebuild_file, '\n'.join([
'First line in the ebuild', 'Second line in the ebuild',
- 'LLVM_NEXT_HASH=\"a12b34c56d78e90\" # EGIT_COMMIT r500',
+ 'LLVM_NEXT_HASH=\"a12b34c56d78e90\" # r500',
'Last line in the ebuild'
]))
@@ -225,7 +225,7 @@ class UpdateLLVMNextHashTest(unittest.TestCase):
expected_file_contents = [
'First line in the ebuild\n', 'Second line in the ebuild\n',
- 'LLVM_NEXT_HASH=\"a123testhash1\" # EGIT_COMMIT r1000\n',
+ 'LLVM_NEXT_HASH=\"a123testhash1\" # r1000\n',
'Last line in the ebuild'
]
@@ -261,7 +261,7 @@ class UpdateLLVMNextHashTest(unittest.TestCase):
os.write(
ebuild_file, '\n'.join([
'First line in the ebuild', 'Second line in the ebuild',
- 'LLVM_NEXT_HASH=\"a12b34c56d78e90\" # EGIT_COMMIT r500',
+ 'LLVM_NEXT_HASH=\"a12b34c56d78e90\" # r500',
'Last line in the ebuild'
]))
@@ -273,7 +273,7 @@ class UpdateLLVMNextHashTest(unittest.TestCase):
expected_file_contents = [
'First line in the ebuild\n', 'Second line in the ebuild\n',
- 'LLVM_NEXT_HASH=\"a123testhash1\" # EGIT_COMMIT r1000\n',
+ 'LLVM_NEXT_HASH=\"a123testhash1\" # r1000\n',
'Last line in the ebuild'
]