forgot windows drive letter in test wip
authorRichard Taylor <richard.i.taylor@nokia.com>
Thu, 29 Apr 2010 09:54:32 +0100
branchwip
changeset 500 69637e02a1ce
parent 499 cad3b96a4fb1
child 501 ae2462f67a30
forgot windows drive letter in test
sbsv2/raptor/test/config/api.xml
sbsv2/raptor/test/unit_suite/raptor_api_unit.py
--- a/sbsv2/raptor/test/config/api.xml	Wed Apr 28 16:46:44 2010 +0100
+++ b/sbsv2/raptor/test/config/api.xml	Thu Apr 29 09:54:32 2010 +0100
@@ -17,7 +17,8 @@
  	<var name="product_D"/>
  	
  	<var name="buildme">
- 		<set name="RELEASEPATH" value="/home/raptor"/>
+ 		<set name="RELEASEPATH" value="/home/raptor" host="lin.*"/>
+ 		<set name="RELEASEPATH" value="C:/home/raptor" host="win.*"/>
  		<set name="VARIANTPLATFORM" value="foo"/>
  		<set name="VARIANTTYPE" value="bar"/>
  	</var>
--- a/sbsv2/raptor/test/unit_suite/raptor_api_unit.py	Wed Apr 28 16:46:44 2010 +0100
+++ b/sbsv2/raptor/test/unit_suite/raptor_api_unit.py	Thu Apr 29 09:54:32 2010 +0100
@@ -53,21 +53,26 @@
 
 		api = raptor_api.Context(r)
 		
+		if r.filesystem == "unix":
+			path = "/home/raptor/foo/bar"
+		else:
+			path = "C:/home/raptor/foo/bar"
+			
 		config = api.GetConfig("buildme")
 		self.failUnlessEqual(config.fullname, "buildme")
-		self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar")
+		self.failUnlessEqual(config.outputpath, path)
 		
 		config = api.GetConfig("buildme.foo")
 		self.failUnlessEqual(config.fullname, "buildme.foo")
-		self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar")
+		self.failUnlessEqual(config.outputpath, path)
 		
 		config = api.GetConfig("s1")
 		self.failUnlessEqual(config.fullname, "buildme.foo")
-		self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar")
+		self.failUnlessEqual(config.outputpath, path)
 		
 		config = api.GetConfig("s2.product_A")
 		self.failUnlessEqual(config.fullname, "buildme.foo.bar.product_A")
-		self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar")
+		self.failUnlessEqual(config.outputpath, path)
 		
 	def testProducts(self):
 		r = raptor.Raptor()