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
f801e574
Commit
f801e574
authored
Jul 02, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
661b871f
Changes
1
Show 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 @
f801e574
...
...
@@ -206,7 +206,7 @@ class tDB:
# ( git.kernel.org/linus/a131de0a482a makes in-kernel FUSE client to
# still wait for request completion even after fatal signal )
t
.
_closed
=
chan
()
t
.
_wcfuse
conn
=
os
.
stat
(
testmntpt
).
st_dev
t
.
_wcfuse
abort
=
open
(
"/sys/fs/fuse/connections/%d/abort"
%
os
.
stat
(
testmntpt
).
st_dev
,
"w"
)
go
(
t
.
_abort_ontimeout
,
7
*
time
.
second
)
# NOTE must be >> with_timeout
# ZBigFile(s) scheduled for commit
...
...
@@ -252,14 +252,16 @@ class tDB:
return
# tDB closed = testcase completed
# timeout -> force-umount wcfs
print
(
"
\
n
C: test timed out after %.1fs -> aborting wcfs fuse connection"
" to unblock"
%
(
dt
/
time
.
second
),
file
=
sys
.
stderr
)
writefile
(
"/sys/fs/fuse/connections/%d/abort"
%
t
.
_wcfuseconn
,
b"1
\
n
"
)
print
(
"
\
n
C: test timed out after %.1fs"
%
(
dt
/
time
.
second
),
file
=
sys
.
stderr
)
print
(
"-> aborting wcfs fuse connection to unblock ..."
,
file
=
sys
.
stderr
)
t
.
_wcfuseabort
.
write
(
b"1
\
n
"
)
t
.
_wcfuseabort
.
flush
()
# close closes test database as well as all tracked files, watch links and wcfs.
# it also prints change history to help developer overview current testcase.
@
func
def
close
(
t
):
defer
(
t
.
_wcfuseabort
.
close
)
defer
(
t
.
_closed
.
close
)
# unmount and wait for wcfs to exit
...
...
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