test: make sure '\' characters in a string are escaped to \\ so that the regexp works
--- a/sbsv2/raptor/test/smoke_suite/exe_armv5.py Mon Feb 15 11:58:10 2010 +0000
+++ b/sbsv2/raptor/test/smoke_suite/exe_armv5.py Mon Feb 15 13:33:43 2010 +0000
@@ -118,12 +118,15 @@
if t.result == SmokeTest.FAIL:
result = SmokeTest.FAIL
+
+ # Test for the Check Filter to ensure that it reports
+ # missing files properly when used from sbs_filter.py:
import os
abs_epocroot = os.path.abspath(os.environ["EPOCROOT"])
t.id = "0001d"
t.command = "rm $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map; sbs_filter --filters=FilterCheck < ${SBSLOGFILE}"
t.targets = []
- t.mustmatch = ["MISSING: *" + abs_epocroot + ".epoc32.release.armv5.udeb.test\.exe\.map"]
+ t.mustmatch = ["MISSING:[ ]+" + abs_epocroot.replace("\\","\\\\") + ".epoc32.release.armv5.udeb.test\.exe\.map.*"]
t.mustnotmatch = []
t.warnings = 1
t.returncode = 2