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}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index e05ac75..05297dc 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -405,7 +405,7 @@
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'),
]
diff --git a/tools/autoroller/roll_chromium_revision.py b/tools-webrtc/autoroller/roll_deps.py
similarity index 98%
rename from tools/autoroller/roll_chromium_revision.py
rename to tools-webrtc/autoroller/roll_deps.py
index 85cbbe9..1bfcaee 100755
--- a/tools/autoroller/roll_chromium_revision.py
+++ b/tools-webrtc/autoroller/roll_deps.py
@@ -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
diff --git a/tools/autoroller/unittests/roll_chromium_revision_test.py b/tools-webrtc/autoroller/unittests/roll_deps_test.py
similarity index 92%
rename from tools/autoroller/unittests/roll_chromium_revision_test.py
rename to tools-webrtc/autoroller/unittests/roll_deps_test.py
index d7b3e26..20772d9 100755
--- a/tools/autoroller/unittests/roll_chromium_revision_test.py
+++ b/tools-webrtc/autoroller/unittests/roll_deps_test.py
@@ -18,10 +18,9 @@
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 @@
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'
diff --git a/tools/autoroller/unittests/testdata/DEPS b/tools-webrtc/autoroller/unittests/testdata/DEPS
similarity index 100%
rename from tools/autoroller/unittests/testdata/DEPS
rename to tools-webrtc/autoroller/unittests/testdata/DEPS
diff --git a/tools/autoroller/unittests/testdata/DEPS.chromium.new b/tools-webrtc/autoroller/unittests/testdata/DEPS.chromium.new
similarity index 100%
rename from tools/autoroller/unittests/testdata/DEPS.chromium.new
rename to tools-webrtc/autoroller/unittests/testdata/DEPS.chromium.new
diff --git a/tools/autoroller/unittests/testdata/DEPS.chromium.old b/tools-webrtc/autoroller/unittests/testdata/DEPS.chromium.old
similarity index 100%
rename from tools/autoroller/unittests/testdata/DEPS.chromium.old
rename to tools-webrtc/autoroller/unittests/testdata/DEPS.chromium.old