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
Łukasz Nowak
slapos
Commits
2343b622
Commit
2343b622
authored
Apr 19, 2017
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always provide try information
parent
a64d5e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
software/cdn-test/runTestSuite.py
software/cdn-test/runTestSuite.py
+6
-5
No files found.
software/cdn-test/runTestSuite.py
View file @
2343b622
...
...
@@ -125,7 +125,7 @@ def main():
error_count
=
0
)
finished
=
False
status_dict
[
'stdout'
]
=
'
Build not yet successful.'
status_dict
[
'stdout'
]
=
try_info
+
'
Build not yet successful.'
print
(
try_info
+
' %r: Found not yet finished run.'
%
(
result_file
,))
elif
"
\
"
msg
\
"
:
\
"
[u'Build successful, connect to:', u'"
in
result
:
# success
...
...
@@ -137,7 +137,7 @@ def main():
)
finished
=
True
print
(
try_info
+
' %r: Found finished successful run.'
%
(
result_file
,))
status_dict
[
'stdout'
]
=
'
Build successful.'
status_dict
[
'stdout'
]
=
try_info
+
'
Build successful.'
break
else
:
# unknown
...
...
@@ -148,7 +148,7 @@ def main():
error_count
=
1
)
status_dict
[
'stdout'
]
=
\
'
Cannot find success nor failure result in the output'
try_info
+
'
Cannot find success nor failure result in the output'
print
(
try_info
+
' %r: Found unknown run.'
%
(
result_file
,))
finished
=
False
if
finished
:
...
...
@@ -156,12 +156,13 @@ def main():
if
try_num
>=
try_amount
:
msg
=
try_info
+
' Time exceeded, success not found.'
print
(
msg
)
status_dict
[
'stderr'
]
=
msg
status_dict
.
setdefault
(
'stdout'
,
''
)
status_dict
[
'stdout'
]
=
'
\
n
'
.
join
([
status_dict
[
'stdout'
],
msg
])
break
try_num
+=
1
sleep
(
10
)
if
not
result_found
:
status_dict
[
'stdout'
]
=
'
Test timed out and no result found.'
status_dict
[
'stdout'
]
=
try_info
+
'
Test timed out and no result found.'
status_dict
.
update
(
test_count
=
1
,
skip_count
=
0
,
...
...
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