[Buildbot-commits] buildbot/buildbot/test test_maildir.py,1.2,1.3

Brian Warner warner at users.sourceforge.net
Mon Nov 8 09:03:23 UTC 2004


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

Modified Files:
	test_maildir.py 
Log Message:
* buildbot/scripts/runner.py (createMaster): use shutil.copy()
instead of the unix-specific os.system("cp"), thanks to Elliot
Murphy for this and the other buildbot-vs-windows catches.
* buildbot/test/test_maildir.py (MaildirTest.deliverMail): same

* contrib/windows/buildbot.bat: prefix a '@', apparently to not
echo the command as it is run

* setup.py: install sample.mk too, not just sample.cfg
(scripts): install contrib/windows/buildbot.bat on windows


Index: test_maildir.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_maildir.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test_maildir.py	14 Oct 2004 17:28:34 -0000	1.2
+++ test_maildir.py	8 Nov 2004 09:03:20 -0000	1.3
@@ -36,7 +36,7 @@
         print "delivering", msg
         newdir = os.path.join(self.maildir, "new")
         # to do this right, use safecat
-        os.system("cp %s %s/" % (msg, newdir))
+        shutil.copy(msg, newdir)
 
     def timeout(self):
         self.done = 1





More information about the Commits mailing list