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

Expose more information

parent d7677528
......@@ -84,7 +84,8 @@ def main():
result_path = None
start = time()
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(
os.path.join(
args.partition_path,
......@@ -95,9 +96,11 @@ def main():
'test-script-result',
))
if len(result_list) > 0:
print(try_info + ' Data found.')
result_path = result_list[0]
break
if try_num > try_amount:
print(try_info + ' Time exceeded, data not found.')
break
try_num += 1
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