Skip to content

Commit

Permalink
Fix unit test after main merge
Browse files Browse the repository at this point in the history
  • Loading branch information
chamons committed Sep 27, 2021
1 parent 7a9e22e commit a027e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/dotnet/UnitTests/PostBuildTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void BuildIpaTest (ApplePlatform platform, string runtimeIdentifiers)
var project = "MySimpleApp";
Configuration.IgnoreIfIgnoredPlatform (platform);

var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath);
var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath, configuration: "Release");
Clean (project_path);
var properties = GetDefaultProperties (runtimeIdentifiers);
properties ["BuildIpa"] = "true";
Expand Down
8 changes: 4 additions & 4 deletions tests/dotnet/UnitTests/TestBaseClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ protected void SetRuntimeIdentifiers (Dictionary<string, string> properties, str
properties [multiRid] = runtimeIdentifiers;
}

protected string GetProjectPath (string project, string runtimeIdentifiers, ApplePlatform platform, out string appPath, string subdir = null)
protected string GetProjectPath (string project, string runtimeIdentifiers, ApplePlatform platform, out string appPath, string subdir = null, string configuration = "Debug")
{
return GetProjectPath (project, null, runtimeIdentifiers, platform, out appPath);
return GetProjectPath (project, null, runtimeIdentifiers, platform, out appPath, configuration);
}

protected string GetProjectPath (string project, string subdir, string runtimeIdentifiers, ApplePlatform platform, out string appPath)
protected string GetProjectPath (string project, string subdir, string runtimeIdentifiers, ApplePlatform platform, out string appPath, string configuration = "Debug")
{
var rv = GetProjectPath (project, subdir, platform);
if (string.IsNullOrEmpty (runtimeIdentifiers))
runtimeIdentifiers = GetDefaultRuntimeIdentifier (platform);
var appPathRuntimeIdentifier = runtimeIdentifiers.IndexOf (';') >= 0 ? "" : runtimeIdentifiers;
appPath = Path.Combine (Path.GetDirectoryName (rv), "bin", "Debug", platform.ToFramework (), appPathRuntimeIdentifier, project + ".app");
appPath = Path.Combine (Path.GetDirectoryName (rv), "bin", configuration, platform.ToFramework (), appPathRuntimeIdentifier, project + ".app");
return rv;
}

Expand Down

0 comments on commit a027e74

Please sign in to comment.