Commit 63ad8e9b authored by Łukasz Nowak's avatar Łukasz Nowak

Expose more information

parent 796af4d7
......@@ -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,
......@@ -94,9 +95,11 @@ def main():
'public',
'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