mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing specflow tests host
--HG-- branch : 1.x
This commit is contained in:
@@ -37,12 +37,17 @@ namespace Orchard.Specs.Hosting {
|
|||||||
catch { }
|
catch { }
|
||||||
// Trying the two known relative paths to the Orchard.Web directory.
|
// Trying the two known relative paths to the Orchard.Web directory.
|
||||||
// The second one is for the target "spec" in orchard.proj.
|
// The second one is for the target "spec" in orchard.proj.
|
||||||
if (ConfigurationManager.AppSettings["orchardHosting"] != null) {
|
//if (ConfigurationManager.AppSettings["orchardHosting"] != null) {
|
||||||
_orchardWebPath = baseDir.Combine(ConfigurationManager.AppSettings["orchardHosting"]);
|
// _orchardWebPath = baseDir.Combine(ConfigurationManager.AppSettings["orchardHosting"]);
|
||||||
}
|
//}
|
||||||
else {
|
//else {
|
||||||
_orchardWebPath = baseDir.Up(3).Combine("Orchard.Web");
|
for (int i = 1; i < 10; i++) {
|
||||||
|
_orchardWebPath = baseDir.Up(i).Combine("Orchard.Web");
|
||||||
|
if (_orchardWebPath.Exists) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
//}
|
||||||
|
|
||||||
if (!_orchardWebPath.Exists) {
|
if (!_orchardWebPath.Exists) {
|
||||||
_orchardWebPath = baseDir.Parent.Combine("stage");
|
_orchardWebPath = baseDir.Parent.Combine("stage");
|
||||||
|
|||||||
Reference in New Issue
Block a user