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
f1f95d3e
Commit
f1f95d3e
authored
Oct 09, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6364dc14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+7
-5
No files found.
wcfs/wcfs_test.py
View file @
f1f95d3e
...
...
@@ -20,6 +20,7 @@
"""test wcfs filesystem from outside as python client process"""
from
wendelin.lib.testing
import
getTestDB
from
wendelin.lib.zodb
import
dbclose
from
wendelin.lib.mem
import
memcpy
from
wendelin.bigfile.file_zodb
import
ZBigFile
from
wendelin.bigfile.tests.test_filezodb
import
blksize
...
...
@@ -31,6 +32,8 @@ from persistent.timestamp import TimeStamp
import
os
,
os
.
path
,
subprocess
from
errno
import
EINVAL
from
time
import
sleep
from
golang
import
func
,
defer
from
pytest
import
raises
testdb
=
None
...
...
@@ -120,8 +123,11 @@ def test_join_autostart():
# XXX parametrize zblk0, zblk1
# XXX select !wcfs mode so that we prepare data through !wcfs path.
@
func
def
test_bigfile_empty
():
root
=
testdb
.
dbopen
()
defer
(
lambda
:
dbclose
(
root
))
root
[
'zfile'
]
=
f
=
ZBigFile
(
blksize
)
# NOTE there is no clean way to retrieve tid of just committed transaction
...
...
@@ -137,6 +143,7 @@ def test_bigfile_empty():
assert
tidtime
(
tid2
)
>
tidtime
(
tid1
)
wc
=
wcfs
.
join
(
testzurl
,
autostart
=
True
)
defer
(
wc
.
close
)
# path to bigfile/ under wcfs
bigpath
=
wc
.
mountpoint
+
"/bigfile"
...
...
@@ -189,9 +196,4 @@ def test_bigfile_empty():
wc
.
close
()
# TODO pagecache state after loading (via mincore)
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