Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
49a04dec
Commit
49a04dec
authored
Jan 22, 2025
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest: fix seek in python3
See
!138
parent
2d9ee01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
slapos/resiliencytest/__init__.py
slapos/resiliencytest/__init__.py
+2
-1
No files found.
slapos/resiliencytest/__init__.py
View file @
49a04dec
...
...
@@ -278,7 +278,8 @@ def runUnitTest():
# file will be available on the server.
stdout
=
f
.
read
(
2048
)
stdout
+=
"
\
n
[...] File truncated
\
n
"
f
.
seek
(
-
2048
,
os
.
SEEK_END
)
f
.
seek
(
0
,
os
.
SEEK_END
)
f
.
seek
(
f
.
tell
()
-
2048
,
os
.
SEEK_SET
)
stdout
+=
f
.
read
()
test_line
.
stop
(
stdout
=
stdout
,
...
...
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