Skip to content
Permalink
Browse files

Print debug info when ctest2travis indexes run out of sync

  • Loading branch information
m-kuhn authored and nyalldawson committed Jul 7, 2017
1 parent 05e8928 commit e8177b733fb5c9e23779c7f34d755aba4b191d8d
Showing with 11 additions and 2 deletions.
  1. +11 −2 .ci/travis/scripts/ctest2travis.py
@@ -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

0 comments on commit e8177b7

Please sign in to comment.
You can’t perform that action at this time.