Ignore:
Timestamp:
May 18, 2022, 10:47:11 AM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master, pthread-emulation, qualifiedEnum
Children:
e6cf857f
Parents:
9939dc3
Message:

Test output now trims over-long test targets. Shorten the name (including directory) to 35 characters to avoid this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/test_run.py

    r9939dc3 r767a8ef  
    4343                return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) )
    4444
     45        def format_target(self, width):
     46                target = self.target()
     47                length = len(target)
     48                if length < width:
     49                        return '{0:{width}}'.format(target, width=width)
     50                elif length == width:
     51                        return target
     52                else:
     53                        return '...' + target[3-width:]
     54
    4555        @staticmethod
    4656        def valid_name(name):
Note: See TracChangeset for help on using the changeset viewer.