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
fbc98aab
Commit
fbc98aab
authored
Mar 31, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
be3e090c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
wcfs/test.sh
wcfs/test.sh
+1
-1
wcfs/wcfs.go
wcfs/wcfs.go
+8
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-1
No files found.
wcfs/test.sh
View file @
fbc98aab
...
...
@@ -8,5 +8,5 @@ if test -z "$qrun_loglevel"; then
fi
# executed under qemu-runlinux
#
export WENDELIN_CORE_WCFS_OPTIONS="-d -alsologtostderr -v=1"
export
WENDELIN_CORE_WCFS_OPTIONS
=
"-d -alsologtostderr -v=1"
py.test
-vsx
-k
test_wcfs
wcfs/wcfs.go
View file @
fbc98aab
...
...
@@ -1421,15 +1421,23 @@ func (wlink *WatchLink) _serveRX() (err error) {
ctx
:=
context
.
TODO
()
// XXX ctx = ?
fmt
.
Printf
(
"S: watch: AAA
\n
"
)
if
false
{
err
=
wlink
.
setupWatch
(
ctx
,
foid
,
at
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"%d: %s"
,
stream
,
err
)
}
}
fmt
.
Printf
(
"S: watch: BBB
\n
"
)
err
=
wlink
.
send
(
ctx
,
stream
,
"ok"
)
if
err
!=
nil
{
panic
(
err
)
// XXX
}
fmt
.
Printf
(
"S: watch: CCC
\n
"
)
}
}
...
...
wcfs/wcfs_test.py
View file @
fbc98aab
...
...
@@ -413,9 +413,10 @@ class tWatch:
if
len
(
l
)
==
0
:
break
# closed
# <stream> ...
# <stream> ...
\n
stream
,
msg
=
l
.
split
(
' '
,
1
)
stream
=
int
(
stream
)
msg
=
msg
.
rstrip
(
'
\
n
'
)
reply
=
bool
(
stream
%
2
)
if
reply
:
...
...
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