test: make sure '\' characters in a string are escaped to \\ so that the regexp works fix
authorraptorbot <raptorbot@systemstesthead.symbian.intra>
Mon, 15 Feb 2010 13:33:43 +0000
branchfix
changeset 209 604f2aceff59
parent 208 432f3175b677
child 210 fd8c90cfa36c
child 229 b719d614d652
test: make sure '\' characters in a string are escaped to \\ so that the regexp works
sbsv2/raptor/test/smoke_suite/exe_armv5.py
--- 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