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
Boxiang Sun
slapos.buildout
Commits
1865f873
Commit
1865f873
authored
Aug 25, 2015
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test. Faulty cached files should report their location
See #245
parent
3cbb51d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
src/zc/buildout/extends-cache.txt
src/zc/buildout/extends-cache.txt
+25
-1
No files found.
src/zc/buildout/extends-cache.txt
View file @
1865f873
...
@@ -267,7 +267,7 @@ Clean up:
...
@@ -267,7 +267,7 @@ Clean up:
>>> rmdir('cache')
>>> rmdir('cache')
Offline mode and installation from cache
Offline mode and installation from cache
----------------------------
~~~~~~~~~~~~
----------------------------
------------
If we run buildout in offline mode now, it will fail because it cannot get at
If we run buildout in offline mode now, it will fail because it cannot get at
the remote configuration file needed by the user's defaults:
the remote configuration file needed by the user's defaults:
...
@@ -505,6 +505,30 @@ While:
...
@@ -505,6 +505,30 @@ While:
Error: No-longer supported "extended-by" option found in http://localhost/base.cfg.
Error: No-longer supported "extended-by" option found in http://localhost/base.cfg.
Reporting cached locations for downloads of faulty config files
---------------------------------------------------------------
A downloaded config file might be invalid. A cancelled buildout run, an
accidentally gzip-encoded download and so on.
>>> write(server_data, 'faulty.cfg', """\
... This is definitively not
... a proper() config file.
... """)
>>> write('buildout.cfg', """\
... [buildout]
... extends = %sfaulty.cfg
... """ % server_url)
>>> print_(system(buildout))
While:
Initializing.
...
MissingSectionHeaderError: File contains no section headers.
file: http://localhost/faulty.cfg (cached at ...), line: 1
'This is definitively not\n'
Clean up
Clean up
--------
--------
...
...
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