Skip to content

Commit

Permalink
Print debug info when ctest2travis indexes run out of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Jul 7, 2017
1 parent 05e8928 commit e8177b7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .ci/travis/scripts/ctest2travis.py
Expand Up @@ -45,8 +45,17 @@ def start_fold(tag):


def end_fold():
tag = fold_stack.pop()
sys.stdout.write('travis_fold:end:{}\n'.format(tag))
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
Expand Down

0 comments on commit e8177b7

Please sign in to comment.