From ca9dbfc0314634833c85dcc36064db77cb67f8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 29 Nov 2011 21:35:57 +0100 Subject: [PATCH] extracttests.py : improved errors.txt output --- tools/extracttests.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/extracttests.py b/tools/extracttests.py index f64b4db18..4f90aefda 100755 --- a/tools/extracttests.py +++ b/tools/extracttests.py @@ -253,13 +253,10 @@ if filename != None: fout.close() # write 'expected' to errors.txt - expected = expected.replace('\\n', '\n') - expected = expected.replace('\\"', '"') - if expected.startswith('[test.cpp:'): - expected='['+filename+expected[9:] - elif expected.startswith('[test.c:'): - expected='['+filename+expected[8:] if expected != '': + expected = expected.replace('\\n', '\n') + expected = expected.replace('\\"', '"') + expected = re.sub('\\[test.cp?p?:', '['+filename+':', expected) errors.write(expected) errors.close() else: