Commit 5b409637 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4a4c1998
......@@ -4,7 +4,7 @@
if test -z "$qrun_loglevel"; then
go build # rebuild wcfs TODO also test with -race
linux=${LINUX:-$HOME/src/linux/linux/arch/`uname -m`/boot/bzImage}
exec ../t/qemu-runlinux "$linux" $0
exec ../t/qemu-runlinux "$linux" $0 "$@"
fi
# executed under qemu-runlinux
......@@ -14,4 +14,4 @@ py.test \
`# https://stackoverflow.com/a/47893653/9456786` \
-p no:cacheprovider \
\
-vsx -k test_wcfs
"$@"
......@@ -1362,7 +1362,7 @@ def test_wcfs_watch_robust():
" head/at (@%s); …" % (h(zf._p_oid), h(atpast), h(t.head)))
wl.close()
# verify that watch file @at when it did not existed -> error
# verify that `watch file @at` -> error, for @at when file did not existed.
@xfail # check that file exists @at
@func
def test_wcfs_watch_before_create():
......@@ -1386,7 +1386,7 @@ def test_wcfs_watch_before_create():
# verify that watch @at_i -> @at_j ↓ is rejected
# XXX we might want to allow going back in history.
# XXX we might want to allow going back in history later.
@func
def test_wcfs_watch_going_back():
t = tDB(); zf = t.zfile
......@@ -1452,7 +1452,7 @@ def test_wcfs_pintimeout_kill():
wg.wait()
# watch with @at > head - must wait for head to become >= at
# watch with @at > head - must wait for head to become >= at.
# XXX too far ahead - reject?
@func
def test_wcfs_watch_setup_ahead():
......@@ -1461,7 +1461,7 @@ def test_wcfs_watch_setup_ahead():
f = t.open(zf)
at1 = t.commit(zf, {2:'c1'})
f.assertData(['','x','c1']) # NOTE #1 not accessed
f.assertData(['','x','c1']) # NOTE #1 not accessed for watch @at1 to receive no pins
wg = sync.WorkGroup(timeout())
dt = 100*time.millisecond
......@@ -1680,7 +1680,8 @@ def test_wcfs_watch_vs_access():
# verify that on pin message, while under pagefault, we can mmap @at/f[blk]
# into where head/f[blk] was mmaped.
# into where head/f[blk] was mmaped; the result of original pagefaulting read
# must be from newly insterted mapping.
@func
def test_wcfs_remmap_on_pin():
t = tDB(); zf = t.zfile
......@@ -1705,8 +1706,7 @@ def test_wcfs_remmap_on_pin():
f._assertBlk(2, 'hello', {wl: {2:at1}}, pinfunc=_) # NOTE not world
# verify that pin message is not sent for the same blk@at the second time, if
# it was already sent once.
# verify that pin message is not sent for the same blk@at twice.
@func
def test_wcfs_no_pin_twice():
t = tDB(); zf = t.zfile
......@@ -1781,7 +1781,7 @@ def test_wcfs_watch_2files():
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
......
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