Commit ddaae3f0 authored by Łukasz Nowak's avatar Łukasz Nowak

Expose more information

parent d7677528
...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment