From 15ece796fe6325d23c8fb46e0d274221b5f8600e Mon Sep 17 00:00:00 2001 From: "tyoshino@chromium.org" Date: Wed, 29 May 2013 14:12:21 +0000 Subject: [PATCH] Increase expectation on output of gclient for help and unknown command. Also adds msg to assertions to print current size of data written to stdout. Review URL: https://chromiumcodereview.appspot.com/16058007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@202863 0039d316-1c4b-4281-b951-d872f2087c98 --- tests/gclient_smoketest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py index afe838fe71..b6d7e191e9 100755 --- a/tests/gclient_smoketest.py +++ b/tests/gclient_smoketest.py @@ -170,14 +170,16 @@ class GClientSmoke(GClientSmokeBase): """testHelp: make sure no new command was added.""" result = self.gclient(['help']) # Roughly, not too short, not too long. - self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2000) + self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2100, + 'Too much written to stdout: %d bytes' % len(result[0])) self.assertEquals(0, len(result[1])) self.assertEquals(0, result[2]) def testUnknown(self): result = self.gclient(['foo']) # Roughly, not too short, not too long. - self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2000) + self.assertTrue(1000 < len(result[0]) and len(result[0]) < 2100, + 'Too much written to stdout: %d bytes' % len(result[0])) self.assertEquals(0, len(result[1])) self.assertEquals(0, result[2])