Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
ddaae3f0
Commit
ddaae3f0
authored
Apr 03, 2017
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose more information
parent
d7677528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
software/cdn-test/runTestSuite.py
software/cdn-test/runTestSuite.py
+4
-1
No files found.
software/cdn-test/runTestSuite.py
View file @
ddaae3f0
...
@@ -84,7 +84,8 @@ def main():
...
@@ -84,7 +84,8 @@ def main():
result_path
=
None
result_path
=
None
start
=
time
()
start
=
time
()
while
1
:
while
1
:
print
(
'Waiting for data. Try %s/%s'
%
(
try_num
,
try_amount
))
try_info
=
'Try %s/%s.'
%
(
try_num
,
try_amount
)
print
(
try_info
+
' Waiting for data.'
)
result_list
=
glob
.
glob
(
result_list
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
join
(
args
.
partition_path
,
args
.
partition_path
,
...
@@ -95,9 +96,11 @@ def main():
...
@@ -95,9 +96,11 @@ def main():
'test-script-result'
,
'test-script-result'
,
))
))
if
len
(
result_list
)
>
0
:
if
len
(
result_list
)
>
0
:
print
(
try_info
+
' Data found.'
)
result_path
=
result_list
[
0
]
result_path
=
result_list
[
0
]
break
break
if
try_num
>
try_amount
:
if
try_num
>
try_amount
:
print
(
try_info
+
' Time exceeded, data not found.'
)
break
break
try_num
+=
1
try_num
+=
1
sleep
(
10
)
sleep
(
10
)
...
...
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