diff options
author | Jian Cai <jiancai@google.com> | 2020-03-25 15:51:31 -0700 |
---|---|---|
committer | Jian Cai <jiancai@google.com> | 2020-03-26 01:18:36 +0000 |
commit | d511f2bc35d35f203ab500d93d57c328b50529e5 (patch) | |
tree | 5018d0c8209fc8c12b758938af77466af439d0ef /llvm_tools/update_packages_and_run_tryjobs_unittest.py | |
parent | 58c49f6faa951fdf0bb51e97f4ad3c77528b07c4 (diff) | |
download | toolchain-utils-d511f2bc35d35f203ab500d93d57c328b50529e5.tar.gz |
llvm_tools: rename update_chromeos_llvm_next_hash.py
Now that update_chromeos_llvm_next_hash.py can be used to create LLVM
roll CLs too, rename it to update_chromeos_llvm_hash.py to avoid
confusion.
BUG=chromium:1041590
TEST=local tests
Change-Id: I18df7c2fe1f73566d053e963e606d28562637c6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2119808
Tested-by: Jian Cai <jiancai@google.com>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'llvm_tools/update_packages_and_run_tryjobs_unittest.py')
-rwxr-xr-x | llvm_tools/update_packages_and_run_tryjobs_unittest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm_tools/update_packages_and_run_tryjobs_unittest.py b/llvm_tools/update_packages_and_run_tryjobs_unittest.py index 55e344bb..e7563f65 100755 --- a/llvm_tools/update_packages_and_run_tryjobs_unittest.py +++ b/llvm_tools/update_packages_and_run_tryjobs_unittest.py @@ -14,8 +14,8 @@ import unittest.mock as mock from test_helpers import ArgsOutputTest from test_helpers import CreateTemporaryFile -from update_chromeos_llvm_next_hash import CommitContents -import update_chromeos_llvm_next_hash +from update_chromeos_llvm_hash import CommitContents +import update_chromeos_llvm_hash import update_packages_and_run_tryjobs @@ -36,7 +36,7 @@ class UpdatePackagesAndRunTryjobsTest(unittest.TestCase): def testLastTestFileDoesNotExist(self): # Simulate 'open()' on a lasted tested file that does not exist. - mock_open = mock.mock_open(read_data='') + mock.mock_open(read_data='') self.assertEqual( update_packages_and_run_tryjobs.GetLastTestedSVNVersion( @@ -219,7 +219,7 @@ class UpdatePackagesAndRunTryjobsTest(unittest.TestCase): @mock.patch.object(update_packages_and_run_tryjobs, 'RunTryJobs') # Simulate behavior of `UpdatePackages()` when successfully updated the # packages and uploaded a CL for review. - @mock.patch.object(update_chromeos_llvm_next_hash, 'UpdatePackages') + @mock.patch.object(update_chromeos_llvm_hash, 'UpdatePackages') # Simulate behavior of `GetCommandLineArgs()` when successfully parsed the # command line for the optional/required arguments for the script. @mock.patch.object(update_packages_and_run_tryjobs, 'GetCommandLineArgs') |