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
Nirina Malard
slapos
Commits
8df526a7
Commit
8df526a7
authored
Jan 29, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_wrapper: make errors more informative
parent
66abc9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slapos/test/recipe/test_wrapper.py
slapos/test/recipe/test_wrapper.py
+3
-1
No files found.
slapos/test/recipe/test_wrapper.py
View file @
8df526a7
...
@@ -135,6 +135,8 @@ class TestPidFile(WrapperTestCase):
...
@@ -135,6 +135,8 @@ class TestPidFile(WrapperTestCase):
time
.
sleep
(
0.1
)
time
.
sleep
(
0.1
)
if
os
.
path
.
exists
(
self
.
pidfile
):
if
os
.
path
.
exists
(
self
.
pidfile
):
break
break
else
:
self
.
fail
(
process
.
stdout
.
read
())
with
open
(
self
.
pidfile
)
as
f
:
with
open
(
self
.
pidfile
)
as
f
:
pid
=
int
(
f
.
read
())
pid
=
int
(
f
.
read
())
...
@@ -169,7 +171,7 @@ class TestPidFile(WrapperTestCase):
...
@@ -169,7 +171,7 @@ class TestPidFile(WrapperTestCase):
if
process
.
pid
==
pid
:
if
process
.
pid
==
pid
:
break
break
else
:
else
:
self
.
fail
(
'pidfile not updated
'
,
process
.
stdout
.
read
())
self
.
fail
(
'pidfile not updated
: %s'
%
process
.
stdout
.
read
())
class
TestWaitForFiles
(
WrapperTestCase
):
class
TestWaitForFiles
(
WrapperTestCase
):
...
...
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