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

Unified Diff: tests/gclient_smoketest.py

Issue 2776006: Options cleanup, enforce nohooks and deps_os are always defined. (Closed)
Patch Set: Created 10 years, 6 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 | « gclient.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_smoketest.py
diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py
index b89f16ca034caff5cb2fbe4c14a618f7d9eaacfc..713d7ff30485777f271923c7323865a48c09824a 100755
--- a/tests/gclient_smoketest.py
+++ b/tests/gclient_smoketest.py
@@ -119,13 +119,15 @@ class GClientSmoke(GClientSmokeBase):
def testHelp(self):
"""testHelp: make sure no new command was added."""
result = self.gclient(['help'])
- self.assertEquals(1197, len(result[0]))
+ # Roughly, not too short, not too long.
+ self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2000)
self.assertEquals(0, len(result[1]))
self.assertEquals(0, result[2])
def testUnknown(self):
result = self.gclient(['foo'])
- self.assertEquals(1197, len(result[0]))
+ # Roughly, not too short, not too long.
+ self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2000)
self.assertEquals(0, len(result[1]))
self.assertEquals(0, result[2])
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698