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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
a0a3d2ad
Commit
a0a3d2ad
authored
May 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
12a9ca81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+15
-4
No files found.
wcfs/wcfs_test.py
View file @
a0a3d2ad
...
...
@@ -598,13 +598,15 @@ class tSrvReq:
# XXX or adjusts
@
func
(
tWatch
)
def
watch
(
w
,
zf
,
at
):
# XXX -> ?
t
=
w
.
tdb
at_prev
=
w
.
_watching
.
get
(
zf
)
# we were previously watching zf @at_prev
at_from
=
''
if
at_prev
is
not
None
:
assert
False
# TODO
at_from
=
'(%s ->) '
%
t
.
hat
(
at_prev
)
print
(
'
\
n
C: setup watch f<%s> %s%s'
%
(
h
(
zf
.
_p_oid
),
at_from
,
t
.
hat
(
at
)))
t
=
w
.
tdb
print
(
'
\
n
C: setup watch f<%s> %s'
%
(
h
(
zf
.
_p_oid
),
t
.
hat
(
at
)))
if
at_prev
is
not
None
:
assert
False
# TODO
# all changes to zf
vdf
=
[
_
.
byfile
[
zf
]
for
_
in
t
.
dFtail
if
zf
in
_
.
byfile
]
...
...
@@ -645,6 +647,7 @@ def watch(w, zf, at): # XXX -> ?
wg
.
go
(
_
)
wg
.
wait
()
w
.
_watching
[
zf
]
=
at
# _expectPin asserts that wcfs sends expected pin messages.
#
...
...
@@ -755,9 +758,17 @@ def test_wcfs():
print
(
'
\
n
\
n
inv. protocol
\
n
\
n
'
)
for
zf
in
t
.
zfiles
():
# watch from scratch
for
dF
in
t
.
dFtail
:
w
=
t
.
openwatch
()
w
.
watch
(
zf
,
dF
.
rev
)
w
.
close
()
print
(
'
\
n
--------'
)
# watch going at1 -> at2 -> at3
w
=
t
.
openwatch
()
for
dF
in
t
.
dFtail
:
w
.
watch
(
zf
,
dF
.
rev
)
print
()
...
...
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