--- 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()