Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.buildout
Commits
97762c1f
Commit
97762c1f
authored
Jan 06, 2013
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests for bootstrap fix
parent
f946e1fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletion
+60
-1
src/zc/buildout/bootstrap_cl_settings.test
src/zc/buildout/bootstrap_cl_settings.test
+59
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+1
-1
No files found.
src/zc/buildout/bootstrap_cl_settings.test
0 → 100644
View file @
97762c1f
Some
people
pass
buildout
settings
to
bootstrap
.
>>>
import
os
,
sys
>>>
from
os
.
path
import
dirname
,
join
>>>
import
zc
.
buildout
>>>
bootstrap_py
=
join
(
...
dirname
(
...
dirname
(
...
dirname
(
...
dirname
(
zc
.
buildout
.
__file__
)
...
)
...
)
...
),
...
'bootstrap'
,
'bootstrap.py'
)
>>>
top
=
tmpdir
(
'top'
)
>>>
mkdir
(
top
,
'buildout'
)
>>>
os
.
chdir
(
top
)
>>>
write
(
'buildout'
,
'buildout.cfg'
,
...
'''
... [buildout]
... parts =
... '''
)
>>>
write
(
'bootstrap.py'
,
open
(
bootstrap_py
)
.
read
())
>>>
print
'X'
;
print
system
(
...
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
+
...
' bootstrap.py buildout:directory='
+
top
+
...
' -c'
+
join
(
'buildout'
,
'buildout.cfg'
)
...
);
print
'X'
# doctest: +ELLIPSIS
X
Creating
directory
'/top/bin'
.
Creating
directory
'/top/parts'
.
Creating
directory
'/top/eggs'
.
Creating
directory
'/top/develop-eggs'
.
Generated
script
'/top/bin/buildout'
.
...
X
They
might
do
it
with
init
,
but
no
worries
:
>>>
remove
(
top
)
>>>
top
=
tmpdir
(
'top'
)
>>>
mkdir
(
top
,
'buildout'
)
>>>
os
.
chdir
(
top
)
>>>
write
(
'bootstrap.py'
,
open
(
bootstrap_py
)
.
read
())
>>>
print
'X'
;
print
system
(
...
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
+
...
' bootstrap.py buildout:directory='
+
top
+
...
' -c'
+
join
(
'buildout'
,
'buildout.cfg'
)
+
...
' init'
...
);
print
'X'
# doctest: +ELLIPSIS
X
Creating
'/top/buildout/buildout.cfg'
.
Creating
directory
'/top/bin'
.
Creating
directory
'/top/parts'
.
Creating
directory
'/top/eggs'
.
Creating
directory
'/top/develop-eggs'
.
Generated
script
'/top/bin/buildout'
.
...
X
src/zc/buildout/tests.py
View file @
97762c1f
...
@@ -3247,7 +3247,7 @@ def test_suite():
...
@@ -3247,7 +3247,7 @@ def test_suite():
# only if bootstrap.py is present
# only if bootstrap.py is present
if os.path.exists(bootstrap_py):
if os.path.exists(bootstrap_py):
test_suite.append(doctest.DocFileSuite(
test_suite.append(doctest.DocFileSuite(
'bootstrap.txt',
'bootstrap.txt',
'bootstrap_cl_settings.test',
setUp=bootstrapSetup,
setUp=bootstrapSetup,
tearDown=zc.buildout.testing.buildoutTearDown,
tearDown=zc.buildout.testing.buildoutTearDown,
checker=renormalizing.RENormalizing([
checker=renormalizing.RENormalizing([
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment