Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
61b17d34
Commit
61b17d34
authored
May 02, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5/{benchmarks,test}: breakpoint on errors when SLAPOS_TEST_DEBUG is true
parent
ea21b1f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
software/erp5/test/test/benchmarks.py
software/erp5/test/test/benchmarks.py
+4
-2
software/erp5/test/test/test_erp5.py
software/erp5/test/test/test_erp5.py
+2
-0
No files found.
software/erp5/test/test/benchmarks.py
View file @
61b17d34
...
...
@@ -175,6 +175,8 @@ class TestOrderBuildPackingListSimulation(
params
=
{
'user_quantity:int'
:
1
})
if
not
ret
.
ok
:
self
.
logger
.
error
(
ret
.
text
)
if
self
.
_debug
:
breakpoint
()
ret
.
raise_for_status
()
self
.
_waitForActivities
(
timeout
=
datetime
.
timedelta
(
hours
=
2
).
total_seconds
())
...
...
@@ -211,6 +213,8 @@ class TestOrderBuildPackingListSimulation(
)
if
not
ret
.
ok
:
self
.
logger
.
error
(
ret
.
text
)
if
self
.
_debug
:
breakpoint
()
ret
.
raise_for_status
()
self
.
_waitForActivities
(
timeout
=
datetime
.
timedelta
(
hours
=
2
).
total_seconds
())
...
...
@@ -241,5 +245,3 @@ class TestOrderBuildPackingListSimulation(
subprocess
.
check_output
(
(
pt_query_digest
,
mariadb_slowquery_log
),
text
=
True
)
})
breakpoint
()
software/erp5/test/test/test_erp5.py
View file @
61b17d34
...
...
@@ -460,6 +460,8 @@ class ZopeSkinsMixin:
pass
time
.
sleep
(
5
)
else
:
if
cls
.
_debug
:
breakpoint
()
raise
AssertionError
(
"Timeout waiting for activities"
)
@
classmethod
...
...
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