Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
2139af2c
Commit
2139af2c
authored
Jun 04, 2020
by
Kirill Smelkov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X treegen: Verify that tree actually saved to storage is what was requested
parent
9181c5d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+12
-0
No files found.
wcfs/testprog/treegen.py
View file @
2139af2c
...
@@ -194,7 +194,19 @@ def Trees(zstor, r):
...
@@ -194,7 +194,19 @@ def Trees(zstor, r):
# restructure ztree to requested topology
# restructure ztree to requested topology
xbtree
.
Restructure
(
ztree
,
tree
)
xbtree
.
Restructure
(
ztree
,
tree
)
# commit tree to storage
head
=
commit
(
"treegen/trees: %s"
%
treetxt
)
head
=
commit
(
"treegen/trees: %s"
%
treetxt
)
# verify what was persisted to storage is indeed what we intended
zctx
.
zconn
.
cacheMinimize
()
treetxt_onstor
=
zctx
.
ztreetxt
(
ztree
)
if
treetxt_onstor
!=
treetxt
:
panic
(
"BUG: tree wrongly saved to storage:
\
n
saved: %s
\
n
requested: %s"
%
(
treetxt_onstor
,
treetxt
))
# verify saved tree consistency
xbtree
.
zcheck
(
ztree
)
# ok
xprint
(
"%s"
%
ashex
(
head
))
xprint
(
"%s"
%
ashex
(
head
))
...
...
Kirill Smelkov
@kirr
mentioned in commit
9cb12737
·
Oct 27, 2021
mentioned in commit
9cb12737
mentioned in commit 9cb12737812d7b8c7cb4b20143618d2f214a27c2
Toggle commit list
Kirill Smelkov
@kirr
mentioned in commit
a8595565
·
Oct 28, 2021
mentioned in commit
a8595565
mentioned in commit a85955651991fdc856d02babd9110a50df4171e7
Toggle commit list
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