Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: prebuilt_unittest.py

Issue 4102001: Add support for prebuilt uploading using rsync. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Fix nits Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « prebuilt.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: prebuilt_unittest.py
diff --git a/prebuilt_unittest.py b/prebuilt_unittest.py
index 4fe0c91cc9c28f4cc5e123409ed9ef2f582ee3eb..37d24afde13f62155f66702762325bb6a342ac6d 100755
--- a/prebuilt_unittest.py
+++ b/prebuilt_unittest.py
@@ -109,7 +109,7 @@ class TestPrebuiltFilters(unittest.TestCase):
self._CreateNestedDir(self.private_dir, dir_structure)
prebuilt.LoadPrivateFilters(self.tmp_dir)
-
+
def testFilterPattern(self):
"""Check that particular packages are filtered properly."""
self._LoadPrivateMockFilters()
@@ -164,9 +164,9 @@ class TestPrebuilt(unittest.TestCase):
def testGenerateUploadDict(self):
gs_bucket_path = 'gs://chromeos-prebuilt/host/version'
self.mox.StubOutWithMock(cros_build_lib, 'ListFiles')
- cros_build_lib.ListFiles(' ').AndReturn(self.files_to_sync)
+ cros_build_lib.ListFiles(self.fake_path).AndReturn(self.files_to_sync)
self.mox.ReplayAll()
- result = prebuilt.GenerateUploadDict(' ', gs_bucket_path, self.fake_path)
+ result = prebuilt.GenerateUploadDict(self.fake_path, gs_bucket_path)
self.assertEqual(result, self._generate_dict_results(gs_bucket_path))
def testFailonUploadFail(self):
« no previous file with comments | « prebuilt.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698