# HG changeset patch # User raptorbot # Date 1266240823 0 # Node ID 604f2aceff591c19942b925625ab8555bddc5206 # Parent 432f3175b677ec487f654aaeaa8792600bbd47fd test: make sure '\' characters in a string are escaped to \\ so that the regexp works diff -r 432f3175b677 -r 604f2aceff59 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