Commit 83d658a0 authored by Xavier Thompson's avatar Xavier Thompson

Make tests more complete

parent 785b425d
...@@ -62,6 +62,10 @@ Develop: '/sample-buildout/recipes' ...@@ -62,6 +62,10 @@ Develop: '/sample-buildout/recipes'
... recipe = recipes:pyshow ... recipe = recipes:pyshow
... """ % dict(syspython=sys.executable)) ... """ % dict(syspython=sys.executable))
>>> cat(buildout) # doctest: +ELLIPSIS
#!/system_python
...
>>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'})) # doctest: +ELLIPSIS >>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'})) # doctest: +ELLIPSIS
slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap. slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap.
Develop: '/sample-buildout/recipes' Develop: '/sample-buildout/recipes'
...@@ -81,3 +85,7 @@ Updating installpython. ...@@ -81,3 +85,7 @@ Updating installpython.
Installing realrun. Installing realrun.
Running with: /sample_buildout/parts/installpython/bin/python Running with: /sample_buildout/parts/installpython/bin/python
<BLANKLINE> <BLANKLINE>
>>> cat(buildout) # doctest: +ELLIPSIS
/sample-buildout/parts/installpython/bin/python
...
...@@ -22,6 +22,10 @@ Develop: '/sample-buildout/recipes' ...@@ -22,6 +22,10 @@ Develop: '/sample-buildout/recipes'
... recipe = recipes:pyshow ... recipe = recipes:pyshow
... """ % dict(syspython=sys.executable)) ... """ % dict(syspython=sys.executable))
>>> cat(buildout) # doctest: +ELLIPSIS
#!/system_python
...
>>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'})) >>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'}))
slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap. slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap.
Develop: '/sample-buildout/recipes' Develop: '/sample-buildout/recipes'
...@@ -42,6 +46,10 @@ Installing realrun. ...@@ -42,6 +46,10 @@ Installing realrun.
Running with: /sample_buildout/parts/installpython/bin/python Running with: /sample_buildout/parts/installpython/bin/python
<BLANKLINE> <BLANKLINE>
>>> cat(buildout) # doctest: +ELLIPSIS
/sample-buildout/parts/installpython/bin/python
...
>>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'})) >>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'}))
Develop: '/sample-buildout/recipes' Develop: '/sample-buildout/recipes'
Updating installpython. Updating installpython.
...@@ -49,6 +57,10 @@ Updating realrun. ...@@ -49,6 +57,10 @@ Updating realrun.
Running with: /sample_buildout/parts/installpython/bin/python Running with: /sample_buildout/parts/installpython/bin/python
<BLANKLINE> <BLANKLINE>
>>> cat(buildout) # doctest: +ELLIPSIS
/sample-buildout/parts/installpython/bin/python
...
>>> cp(buildout + '-orig', buildout) >>> cp(buildout + '-orig', buildout)
>>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'})) >>> print(system(buildout, env={'PYTHONWARNINGS':'ignore'}))
slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap. slapos.rebootstrap: Make sure that the section 'installpython' won't be reinstalled after rebootstrap.
...@@ -68,3 +80,7 @@ Updating installpython. ...@@ -68,3 +80,7 @@ Updating installpython.
Updating realrun. Updating realrun.
Running with: /sample_buildout/parts/installpython/bin/python Running with: /sample_buildout/parts/installpython/bin/python
<BLANKLINE> <BLANKLINE>
>>> cat(buildout) # doctest: +ELLIPSIS
/sample-buildout/parts/installpython/bin/python
...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment