mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44: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 { }
|
||||
// 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");
|
||||
|
||||
Reference in New Issue
Block a user