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
b7cea990
Commit
b7cea990
authored
Jan 23, 2025
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest: double the size of log outputted in the test result
See
!138
parent
49a04dec
Pipeline
#39224
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/resiliencytest/__init__.py
slapos/resiliencytest/__init__.py
+3
-3
No files found.
slapos/resiliencytest/__init__.py
View file @
b7cea990
...
...
@@ -268,7 +268,7 @@ def runUnitTest():
error_count
=
1
test_duration
=
time
.
time
()
-
start_time
max_size
=
4096
max_size
=
8192
fsize
=
os
.
stat
(
fname
).
st_size
with
open
(
fname
)
as
f
:
if
fsize
<=
max_size
:
...
...
@@ -276,10 +276,10 @@ def runUnitTest():
else
:
# Read only 2048 bytes from the file. The whole
# file will be available on the server.
stdout
=
f
.
read
(
2048
)
stdout
=
f
.
read
(
4096
)
stdout
+=
"
\
n
[...] File truncated
\
n
"
f
.
seek
(
0
,
os
.
SEEK_END
)
f
.
seek
(
f
.
tell
()
-
2048
,
os
.
SEEK_SET
)
f
.
seek
(
f
.
tell
()
-
4096
,
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