From a873c115e0db45283ae15891de9ba8c203521ab4 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Wed, 24 Apr 2019 15:36:13 -0300 Subject: [PATCH] Print correctly the first filename It was not splitting the extension --- src/bin/expedite-cmp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/expedite-cmp b/src/bin/expedite-cmp index ea6d5ec..2df42c8 100755 --- a/src/bin/expedite-cmp +++ b/src/bin/expedite-cmp @@ -70,8 +70,9 @@ def report_text(): fmtsize = len(options.format % {"value": 12345.67, "percentual": 1234.56}) hdrfmt = "%%%d.%ds" % (fmtsize, fmtsize) - print(test_name_fmt % "\\", end=' ') - print("%7.7s" % (files[0][-7:],), end=' ') + print(test_name_fmt % "Files", end=' ') + first_filename, _ = os.path.splitext(files[0]) + print("%7.7s" % (first_filename[-7:],), end=' ') for f in files[1:]: n, e = os.path.splitext(f) print(hdrfmt % n[-fmtsize:], end=' ')