[benchtests] Fix compare_strings.py for python2
commitd67d634bef4deda775b9e6ee74ed1807963caf35
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Aug 2018 18:56:45 +0000 (3 00:26 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 2 Aug 2018 18:56:45 +0000 (3 00:26 +0530)
tree8bc96b9572a2d9e7f0c4f46cdd3e22f70507cb44
parent525691bde3b574c4a1800c510db0dd85a70fd9c5
[benchtests] Fix compare_strings.py for python2

Python 2 does not have a FileNotFoundError so drop it in favour of
simply printing out the last (and most informative) line of the
exception.

* benchtests/scripts/compare_strings.py: Import traceback.
(parse_file): Pretty-print error.
ChangeLog
benchtests/scripts/compare_strings.py