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

Unified Diff: tests/gsutil_test.py

Issue 1346213003: gsutil: Parallel-safe, specify target, add clean. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Explicitly create base directory. Created 5 years, 3 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 | « gsutil.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gsutil_test.py
diff --git a/tests/gsutil_test.py b/tests/gsutil_test.py
index 76570dd31034727b4c38346ea6e84fe383f9b234..d34eebfa52e76affc1df6b6a52c0c4801d150523 100755
--- a/tests/gsutil_test.py
+++ b/tests/gsutil_test.py
@@ -144,8 +144,8 @@ class GsutilUnitTests(unittest.TestCase):
# This should delete the old bin and rewrite it with 'Fake gsutil'
self.assertRaises(
- gsutil.InvalidGsutilError, gsutil.ensure_gsutil, version, self.tempdir)
- self.assertTrue(os.path.isdir(os.path.join(self.tempdir, '.cache_dir')))
+ gsutil.InvalidGsutilError, gsutil.ensure_gsutil, version, self.tempdir,
+ False)
self.assertTrue(os.path.exists(gsutil_bin))
with open(gsutil_bin, 'r') as f:
self.assertEquals(f.read(), fake_gsutil)
@@ -165,7 +165,7 @@ class GsutilUnitTests(unittest.TestCase):
with open(gsutil_bin, 'w') as f:
f.write('Foobar')
self.assertEquals(
- gsutil.ensure_gsutil(version, self.tempdir), gsutil_bin)
+ gsutil.ensure_gsutil(version, self.tempdir, False), gsutil_bin)
if __name__ == '__main__':
unittest.main()
« no previous file with comments | « gsutil.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698