[Buildbot-commits] buildbot/buildbot/test test_vc.py,1.65,1.66
Brian Warner
warner at users.sourceforge.net
Sun Aug 6 23:30:02 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32482/buildbot/test
Modified Files:
test_vc.py
Log Message:
[project @ add docs to kevin's test_vc patch, rename helper function]
Original author: warner at lothar.com
Date: 2006-08-06 23:02:15
Index: test_vc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_vc.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- test_vc.py 6 Aug 2006 23:29:53 -0000 1.65
+++ test_vc.py 6 Aug 2006 23:30:00 -0000 1.66
@@ -200,7 +200,7 @@
}
'''
-def wq(s):
+def qw(s):
return s.split()
class VCS_Helper:
@@ -1552,24 +1552,24 @@
yield w; w.getResult()
self.populate(tmp)
- w = self.dovc(tmp, wq("initialize"))
+ w = self.dovc(tmp, qw("initialize"))
yield w; w.getResult()
- w = self.dovc(tmp, wq("add -r ."))
+ w = self.dovc(tmp, qw("add -r ."))
yield w; w.getResult()
- w = self.dovc(tmp, wq("record -a -m initial_import --skip-long-comment -A test at buildbot.sf.net"))
+ w = self.dovc(tmp, qw("record -a -m initial_import --skip-long-comment -A test at buildbot.sf.net"))
yield w; w.getResult()
w = self.dovc(tmp, ["push", "-a", self.rep_trunk])
yield w; w.getResult()
- w = self.dovc(tmp, wq("changes --context"))
+ w = self.dovc(tmp, qw("changes --context"))
yield w; out = w.getResult()
self.addTrunkRev(out)
self.populate_branch(tmp)
- w = self.dovc(tmp, wq("record -a --ignore-times -m commit_on_branch --skip-long-comment -A test at buildbot.sf.net"))
+ w = self.dovc(tmp, qw("record -a --ignore-times -m commit_on_branch --skip-long-comment -A test at buildbot.sf.net"))
yield w; w.getResult()
w = self.dovc(tmp, ["push", "-a", self.rep_branch])
yield w; w.getResult()
- w = self.dovc(tmp, wq("changes --context"))
+ w = self.dovc(tmp, qw("changes --context"))
yield w; out = w.getResult()
self.addBranchRev(out)
rmdirRecursive(tmp)
@@ -1578,7 +1578,7 @@
def vc_revise(self):
tmp = os.path.join(self.repbase, "darcstmp")
os.makedirs(tmp)
- w = self.dovc(tmp, wq("initialize"))
+ w = self.dovc(tmp, qw("initialize"))
yield w; w.getResult()
w = self.dovc(tmp, ["pull", "-a", self.rep_trunk])
yield w; w.getResult()
@@ -1586,11 +1586,11 @@
self.version += 1
version_c = VERSION_C % self.version
open(os.path.join(tmp, "version.c"), "w").write(version_c)
- w = self.dovc(tmp, wq("record -a --ignore-times -m revised_to_%d --skip-long-comment -A test at buildbot.sf.net" % self.version))
+ w = self.dovc(tmp, qw("record -a --ignore-times -m revised_to_%d --skip-long-comment -A test at buildbot.sf.net" % self.version))
yield w; w.getResult()
w = self.dovc(tmp, ["push", "-a", self.rep_trunk])
yield w; w.getResult()
- w = self.dovc(tmp, wq("changes --context"))
+ w = self.dovc(tmp, qw("changes --context"))
yield w; out = w.getResult()
self.addTrunkRev(out)
rmdirRecursive(tmp)
@@ -1601,7 +1601,7 @@
if os.path.exists(workdir):
rmdirRecursive(workdir)
os.makedirs(workdir)
- w = self.dovc(workdir, wq("initialize"))
+ w = self.dovc(workdir, qw("initialize"))
yield w; w.getResult()
if not branch:
rep = self.rep_trunk
More information about the Commits
mailing list