Print debug info when ctest2travis indexes run out of sync

This commit is contained in:
Matthias Kuhn 2017-07-03 07:10:41 +02:00 committed by Nyall Dawson
parent 05e8928e30
commit e8177b733f

View File

@ -45,8 +45,17 @@ def start_fold(tag):
def end_fold():
try:
tag = fold_stack.pop()
sys.stdout.write('travis_fold:end:{}\n'.format(tag))
except IndexError:
updated_line = colored("======================", 'magenta')
updated_line += colored("ctest2travis error when processing the following line:", 'magenta')
updated_line += colored("----------------------", 'magenta')
updated_line += colored(updated_line, 'magenta')
updated_line += colored("----------------------", 'magenta')
updated_line += colored("Tried to end fold, but fold was never started.", 'magenta')
updated_line += colored("======================", 'magenta')
test_count = 0