fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows. fix
authortimothy.murphy@nokia.com
Fri, 12 Feb 2010 15:41:09 +0200
branchfix
changeset 205 ce7b587b436c
parent 204 a19456c07783
child 206 9bc64f367d8a
fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows.
sbsv2/raptor/python/plugins/filter_what.py
sbsv2/raptor/test/smoke_suite/exe_armv5.py
--- a/sbsv2/raptor/python/plugins/filter_what.py	Fri Feb 12 14:57:02 2010 +0200
+++ b/sbsv2/raptor/python/plugins/filter_what.py	Fri Feb 12 15:41:09 2010 +0200
@@ -36,9 +36,9 @@
 				actually starts at 'start + 1' """
 
 		abs_filename = line[(start + 1):end]
-		filename = abs_filename.replace("/","\\")
+		filename = abs_filename
 
-		# Hack drive letters for case insensitivity on windows
+		# Adjust drive letters for case insensitivity on windows
 
 		path_prefix_to_strip = self.path_prefix_to_strip
 		if "win" in self.buildparameters.platform:
@@ -47,7 +47,7 @@
 
 		if path_prefix_to_strip:
 			if "win" in self.buildparameters.platform:
-				path_prefix_to_strip = path_prefix_to_strip[0].upper()+path_prefix_to_strip[1:]
+				path_prefix_to_strip = path_prefix_to_strip[0].upper()+path_prefix_to_strip[1:].replace("/","\\")
 			if filename.startswith(path_prefix_to_strip):
 				filename = filename[len(path_prefix_to_strip):]
 			if self.path_prefix_to_add_on != None:
--- a/sbsv2/raptor/test/smoke_suite/exe_armv5.py	Fri Feb 12 14:57:02 2010 +0200
+++ b/sbsv2/raptor/test/smoke_suite/exe_armv5.py	Fri Feb 12 15:41:09 2010 +0200
@@ -104,7 +104,8 @@
 	t.run()	
 	if t.result == SmokeTest.FAIL:
 		result = SmokeTest.FAIL	
-		
+	
+
 	t.id = "0001c"
 	t.name = "exe_armv5_gcce"
 	t.command = command % "gcce_armv5"
@@ -117,10 +118,12 @@
 	if t.result == SmokeTest.FAIL:
 		result = SmokeTest.FAIL	
 
+	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"]
+	t.mustmatch = ["MISSING: *" + abs_epocroot + ".epoc32.release.armv5.udeb.test\.exe\.map"]
 	t.mustnotmatch = []
 	t.warnings = 1
 	t.returncode = 2