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

Unified Diff: tests/gclient_smoketest.py

Issue 6792060: Make more tests pass on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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
Index: tests/gclient_smoketest.py
diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py
index c18013e4d7c9139e2a0d4c087e111041c30e4a84..acd0ab5666466a7fc2682a56b825c63e5ad090dc 100755
--- a/tests/gclient_smoketest.py
+++ b/tests/gclient_smoketest.py
@@ -127,7 +127,14 @@ class GClientSmokeBase(FakeReposTestBase):
verb = items[i]
path = self.root_dir
self.checkString(results[i][0][0], verb, (i, results[i][0][0], verb))
- self.checkString(results[i][0][2], path, (i, results[i][0][2], path))
+ if sys.platform == 'win32':
+ # Make path lower case since casing can change randomly.
+ self.checkString(
+ results[i][0][2].lower(),
+ path.lower(),
+ (i, results[i][0][2].lower(), path.lower()))
+ else:
+ self.checkString(results[i][0][2], path, (i, results[i][0][2], path))
self.assertEquals(len(results), len(items), (stdout, items, len(results)))
return results

Powered by Google App Engine
This is Rietveld 408576698