Commit a1712007 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e07b8e4e
......@@ -276,17 +276,14 @@ def test_wcfs():
assert tail2[:len(s2)] == s2
assert tail2[len(s2):] == b'\0'*(blksize - len(s2))
# path to f's state @tcommit1
rev1 = t.wc.mountpoint + ("/@%s" % h(tcommit1))
fpath1 = rev1 + "/bigfile/" + h(f._p_oid)
st = os.stat(fpath1)
# f @tcommit1
st = t.stat(f, rev=tcommit1)
assert st.st_size == fsize1
#assert st.st_mtime == tidtime(tcommit1) FIXME mtime for @revX -> = revX ?
#assert readfile(fpath + "/at") == h(tcommit1) XXX do we need it?
data = t.read(f, rev=tcommit1)
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