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
bb8d466b
Commit
bb8d466b
authored
Dec 25, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
af6e8fe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+5
-4
No files found.
wcfs/wcfs_test.py
View file @
bb8d466b
...
@@ -258,15 +258,16 @@ def test_bigfile_empty():
...
@@ -258,15 +258,16 @@ def test_bigfile_empty():
assert
tail2
[
len
(
s2
):]
==
b'
\
0
'
*
(
blksize
-
len
(
s2
))
assert
tail2
[
len
(
s2
):]
==
b'
\
0
'
*
(
blksize
-
len
(
s2
))
# path to f's state @tcommit1
# path to f's state @tcommit1
fpath1
=
fpath
+
(
"/@%s"
%
tcommit1
.
encode
(
"hex"
))
rev1
=
wc
.
mountpoint
+
(
"/@%s"
%
tcommit1
.
encode
(
"hex"
))
fpath1
=
rev1
+
"/bigfile/"
+
f
.
_p_oid
.
encode
(
'hex'
)
os
.
mkdir
(
fpath
1
)
os
.
mkdir
(
rev
1
)
st
=
os
.
stat
(
fpath1
+
"/data"
)
st
=
os
.
stat
(
fpath1
)
assert
st
.
st_size
==
fsize1
assert
st
.
st_size
==
fsize1
#assert st.st_mtime == tidtime(tcommit1) FIXME proper sync
#assert st.st_mtime == tidtime(tcommit1) FIXME proper sync
#assert readfile(fpath + "/at") == tcommit1.encode("hex") XXX do we need it?
#assert readfile(fpath + "/at") == tcommit1.encode("hex") XXX do we need it?
data
=
readfile
(
fpath1
+
"/data"
)
data
=
readfile
(
fpath1
)
assert
len
(
data
)
==
fsize1
assert
len
(
data
)
==
fsize1
for
i
in
range
(
hole
):
for
i
in
range
(
hole
):
assert
data
[
i
*
blksize
:(
i
+
1
)
*
blksize
]
==
b'
\
0
'
*
blksize
assert
data
[
i
*
blksize
:(
i
+
1
)
*
blksize
]
==
b'
\
0
'
*
blksize
...
...
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