[Checkins] SVN: z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt Changed buildout path so that tests pass under windows (thanks glenfant)

Christophe Combelles ccomb at free.fr
Mon Jan 2 12:56:04 UTC 2012


Log message for revision 123880:
  Changed buildout path so that tests pass under windows (thanks glenfant)
  

Changed:
  U   z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt

-=-
Modified: z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt
===================================================================
--- z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt	2012-01-02 12:53:58 UTC (rev 123879)
+++ z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt	2012-01-02 12:56:03 UTC (rev 123880)
@@ -10,6 +10,11 @@
 
     >>> import os
     >>> import z3c.recipe.runscript.tests
+    >>> import sys
+    >>> if sys.platform == 'win32':
+    ...     buildout_cmd = 'bin\\buildout.exe'
+    ... else:
+    ...     buildout_cmd = 'bin/buildout'
     >>> scriptFilename = os.path.join(
     ...     os.path.dirname(z3c.recipe.runscript.tests.__file__), 'fooscripts.py')
 
@@ -31,14 +36,14 @@
 
 When running buildout, the ``installFoo()`` function is called:
 
-    >>> print system('bin/buildout')
+    >>> print system(buildout_cmd)
     Installing foo.
     Now executing ``installFoo()``
 
 If we run the buildout again, the update method will be called, but since we
 did not specify any, nothing happens:
 
-    >>> print system('bin/buildout')
+    >>> print system(buildout_cmd)
     Updating foo.
 
 Let's now specify the update script as well, causing the ``updateFoo()``
@@ -57,14 +62,14 @@
 
 But after a change like that, parts will be uninstalled and reinstalled:
 
-    >>> print system('bin/buildout')
+    >>> print system(buildout_cmd)
     Uninstalling foo.
     Installing foo.
     Now executing ``installFoo()``
 
 Only now we can update the part:
 
-    >>> print system('bin/buildout')
+    >>> print system(buildout_cmd)
     Updating foo.
     Now executing ``updateFoo()``
 



More information about the checkins mailing list