Fixing specflow tests host

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-02-20 11:29:40 -08:00
parent a5c739b342
commit 9ee88990b8

View File

@@ -37,12 +37,17 @@ namespace Orchard.Specs.Hosting {
catch { }
// Trying the two known relative paths to the Orchard.Web directory.
// The second one is for the target "spec" in orchard.proj.
if (ConfigurationManager.AppSettings["orchardHosting"] != null) {
_orchardWebPath = baseDir.Combine(ConfigurationManager.AppSettings["orchardHosting"]);
}
else {
_orchardWebPath = baseDir.Up(3).Combine("Orchard.Web");
//if (ConfigurationManager.AppSettings["orchardHosting"] != null) {
// _orchardWebPath = baseDir.Combine(ConfigurationManager.AppSettings["orchardHosting"]);
//}
//else {
for (int i = 1; i < 10; i++) {
_orchardWebPath = baseDir.Up(i).Combine("Orchard.Web");
if (_orchardWebPath.Exists) {
break;
}
}
//}
if (!_orchardWebPath.Exists) {
_orchardWebPath = baseDir.Parent.Combine("stage");