Commit 5cb1e477 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix tests.

parent d7e3c6af
...@@ -157,7 +157,6 @@ Then let's run the buildout:: ...@@ -157,7 +157,6 @@ Then let's run the buildout::
Let's take a look at the buildout parts directory now:: Let's take a look at the buildout parts directory now::
>>> ls(sample_buildout, 'parts') >>> ls(sample_buildout, 'parts')
d buildout
d git-clone d git-clone
When updating, it will do a "git fetch; git reset @{upstream}":: When updating, it will do a "git fetch; git reset @{upstream}"::
...@@ -195,7 +194,6 @@ Then let's run the buildout:: ...@@ -195,7 +194,6 @@ Then let's run the buildout::
Let's take a look at the buildout parts directory now:: Let's take a look at the buildout parts directory now::
>>> ls(sample_buildout, 'parts') >>> ls(sample_buildout, 'parts')
d buildout
d git-clone d git-clone
And let's see that current branch is "build":: And let's see that current branch is "build"::
...@@ -242,7 +240,6 @@ Then let's run the buildout:: ...@@ -242,7 +240,6 @@ Then let's run the buildout::
Let's take a look at the buildout parts directory now:: Let's take a look at the buildout parts directory now::
>>> ls(sample_buildout, 'parts') >>> ls(sample_buildout, 'parts')
d buildout
d git-clone d git-clone
And let's see that current revision is "2566127":: And let's see that current revision is "2566127"::
...@@ -257,8 +254,13 @@ When updating, it will do a "git fetch; git reset revision":: ...@@ -257,8 +254,13 @@ When updating, it will do a "git fetch; git reset revision"::
>>> cd(sample_buildout) >>> cd(sample_buildout)
>>> print system(buildout) >>> print system(buildout)
Updating git-clone. Updating git-clone.
Fetching origin ...
HEAD is now at 2566127 ... HEAD is now at 2566127 ...
Not found: ...
Not found: ...
Not found: ...
Not found: ...
<BLANKLINE>
Empty revision/branch Empty revision/branch
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
...@@ -367,6 +369,10 @@ repository:: ...@@ -367,6 +369,10 @@ repository::
>>> cd(sample_buildout) >>> cd(sample_buildout)
>>> print system(buildout) >>> print system(buildout)
Updating git-clone. Updating git-clone.
Fetching origin
...
<BLANKLINE>
>>> cd(sample_buildout, 'parts', 'git-clone') >>> cd(sample_buildout, 'parts', 'git-clone')
>>> print system('cat setup.py') >>> print system('cat setup.py')
...@@ -383,6 +389,18 @@ Then, when update occurs, nothing is done:: ...@@ -383,6 +389,18 @@ Then, when update occurs, nothing is done::
>>> cd(sample_buildout) >>> cd(sample_buildout)
>>> print system(buildout) >>> print system(buildout)
Updating git-clone. Updating git-clone.
Fetching origin
Fetching broken
Unable to update:
Traceback (most recent call last):
...
CalledProcessError: Command '['git', 'fetch', '--all']' returned non-zero exit status 1
<BLANKLINE>
...
fatal: unable to access 'http://git.erp5.org/repos/nowhere/': The requested URL returned error: 500
error: Could not fetch broken
<BLANKLINE>
>>> cd(sample_buildout, 'parts', 'git-clone') >>> cd(sample_buildout, 'parts', 'git-clone')
>>> print system('cat local_change') >>> print system('cat local_change')
kept kept
...@@ -409,6 +427,8 @@ In case of uninstall, buildout will keep the repository directory:: ...@@ -409,6 +427,8 @@ In case of uninstall, buildout will keep the repository directory::
You have uncommited changes in /sample-buildout/parts/git-clone. This folder will be left as is. You have uncommited changes in /sample-buildout/parts/git-clone. This folder will be left as is.
Installing git-clone. Installing git-clone.
destination directory already exists. destination directory already exists.
...
<BLANKLINE>
Specific git binary Specific git binary
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
......
from zope.testing import doctest import doctest
from zope.testing import renormalizing from zope.testing import renormalizing
import os import os
......
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