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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thomas Gambier
slapos
Commits
8df526a7
Commit
8df526a7
authored
1 year ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_wrapper: make errors more informative
parent
66abc9c5
Changes
1
Show 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):
time
.
sleep
(
0.1
)
if
os
.
path
.
exists
(
self
.
pidfile
):
break
else
:
self
.
fail
(
process
.
stdout
.
read
())
with
open
(
self
.
pidfile
)
as
f
:
pid
=
int
(
f
.
read
())
...
...
@@ -169,7 +171,7 @@ class TestPidFile(WrapperTestCase):
if
process
.
pid
==
pid
:
break
else
:
self
.
fail
(
'pidfile not updated
'
,
process
.
stdout
.
read
())
self
.
fail
(
'pidfile not updated
: %s'
%
process
.
stdout
.
read
())
class
TestWaitForFiles
(
WrapperTestCase
):
...
...
This diff is collapsed.
Click to expand it.
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