Commit bb8d466b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent af6e8fe7
......@@ -258,15 +258,16 @@ def test_bigfile_empty():
assert tail2[len(s2):] == b'\0'*(blksize - len(s2))
# 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(fpath1)
st = os.stat(fpath1 + "/data")
os.mkdir(rev1)
st = os.stat(fpath1)
assert st.st_size == fsize1
#assert st.st_mtime == tidtime(tcommit1) FIXME proper sync
#assert readfile(fpath + "/at") == tcommit1.encode("hex") XXX do we need it?
data = readfile(fpath1 + "/data")
data = readfile(fpath1)
assert len(data) == fsize1
for i in range(hole):
assert data[i*blksize:(i+1)*blksize] == b'\0'*blksize
......
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