summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2011-05-04 12:02:57 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2011-05-04 12:02:57 (GMT)
commitf96b105c4c523f898d53d11c601360e2ac8468d8 (patch)
tree8fd5d0407ec7f684ba527ada59a44ef91686d68b /QMTest
parent74a93e84cce4f50af3c1ec0b8eaa7d88d57370a6 (diff)
downloadSCons-f96b105c4c523f898d53d11c601360e2ac8468d8.zip
SCons-f96b105c4c523f898d53d11c601360e2ac8468d8.tar.gz
SCons-f96b105c4c523f898d53d11c601360e2ac8468d8.tar.bz2
Fix TEX auxiliary test by normalizing ps output to avoid spurious failures (from Rob Managan)
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index 17a2018..36eb407 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -547,6 +547,18 @@ class TestSCons(TestCommon):
x = x.replace('line 1,', 'line %s,' % line)
return x
+ def normalize_ps(self, s):
+ s = re.sub(r'(Creation|Mod)Date: .*',
+ r'\1Date XXXX', s)
+ s = re.sub(r'%DVIPSSource:\s+TeX output\s.*',
+ r'%DVIPSSource: TeX output XXXX', s)
+ s = re.sub(r'/(BaseFont|FontName) /[A-Z0-9]{6}',
+ r'/\1 /XXXXXX', s)
+ s = re.sub(r'BeginFont: [A-Z0-9]{6}',
+ r'BeginFont: XXXXXX', s)
+
+ return s
+
def normalize_pdf(self, s):
s = re.sub(r'/(Creation|Mod)Date \(D:[^)]*\)',
r'/\1Date (D:XXXX)', s)