[Buildbot-commits] buildbot/buildbot/test test_status.py, 1.34, 1.35

Brian Warner warner at users.sourceforge.net
Fri Sep 15 14:48:55 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21152/buildbot/test

Modified Files:
	test_status.py 
Log Message:
[project @ enhance IStatusLog.readlines to accept a channel= argument]

Original author: warner at lothar.com
Date: 2006-09-08 21:55:02

Index: test_status.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_status.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- test_status.py	15 Sep 2006 14:48:44 -0000	1.34
+++ test_status.py	15 Sep 2006 14:48:53 -0000	1.35
@@ -497,10 +497,13 @@
         l.addStdout("Last line\n")
         l.finish()
         alllines = list(l.readlines())
-        self.failUnlessEqual(len(alllines), 5)
+        self.failUnlessEqual(len(alllines), 4)
         self.failUnlessEqual(alllines[0], "Some text\n")
-        self.failUnlessEqual(alllines[3], "Some Stderr\n")
-        self.failUnlessEqual(alllines[4], "Last line\n")
+        self.failUnlessEqual(alllines[2], "And Some More\n")
+        self.failUnlessEqual(alllines[3], "Last line\n")
+        stderr = list(l.readlines(interfaces.LOG_CHANNEL_STDERR))
+        self.failUnlessEqual(len(stderr), 1)
+        self.failUnlessEqual(stderr[0], "Some Stderr\n")
         lines = l.readlines()
         if False: # TODO: l.readlines() is not yet an iterator
             # verify that it really is an iterator





More information about the Commits mailing list