Move tools/autoroller to tools-webrtc/ + rename script

The script is now capable of rolling more than the chromium_revision
so the name should reflect that.

BUG=webrtc:5006
TBR=charujain@webrtc.org

Review-Url: https://codereview.webrtc.org/2581493003 .
Cr-Commit-Position: refs/heads/master@{#15624}
This commit is contained in:
Henrik Kjellander 2016-12-15 10:20:10 +01:00
parent 41286496cb
commit 24db179bbf
6 changed files with 8 additions and 9 deletions

View File

@ -405,7 +405,7 @@ def _RunPythonTests(input_api, output_api):
return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
test_directories = [
join('tools', 'autoroller', 'unittests'),
join('tools-webrtc', 'autoroller', 'unittests'),
join('webrtc', 'tools', 'py_event_log_analyzer'),
]

View File

@ -7,7 +7,7 @@
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
"""Script to roll chromium_revision in the WebRTC DEPS file."""
"""Script to automatically roll dependencies in the WebRTC DEPS file."""
import argparse
import base64

View File

@ -18,10 +18,9 @@ import unittest
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PARENT_DIR = os.path.join(SCRIPT_DIR, os.pardir)
sys.path.append(PARENT_DIR)
import roll_chromium_revision
from roll_chromium_revision import CalculateChangedDepsProper, \
GetMatchingDepsEntries, ParseDepsDict, \
ParseLocalDepsFile, UpdateDepsFile
import roll_deps
from roll_deps import CalculateChangedDepsProper, GetMatchingDepsEntries, \
ParseDepsDict, ParseLocalDepsFile, UpdateDepsFile
TEST_DATA_VARS = {
@ -75,13 +74,13 @@ class TestRollChromiumRevision(unittest.TestCase):
self._new_cr_depsfile = os.path.join(self._output_dir, 'DEPS.chromium.new')
self.fake = FakeCmd()
self.old_RunCommand = getattr(roll_chromium_revision, '_RunCommand')
setattr(roll_chromium_revision, '_RunCommand', self.fake)
self.old_RunCommand = getattr(roll_deps, '_RunCommand')
setattr(roll_deps, '_RunCommand', self.fake)
def tearDown(self):
shutil.rmtree(self._output_dir, ignore_errors=True)
self.assertEqual(self.fake.expectations, [])
setattr(roll_chromium_revision, '_RunCommand', self.old_RunCommand)
setattr(roll_deps, '_RunCommand', self.old_RunCommand)
def testUpdateDepsFile(self):
new_rev = 'aaaaabbbbbcccccdddddeeeeefffff0000011111'