diff options
author | Alexander Kyte <alexmkyte@gmail.com> | 2017-06-07 21:44:36 +0300 |
---|---|---|
committer | Alexander Kyte <alexmkyte@gmail.com> | 2017-08-30 19:54:47 +0300 |
commit | a4edbde01e2d71230a9506cbbee29ca8276e7705 (patch) | |
tree | 36cab56f649447c87fde78c20b4e870e9347de26 /mcs/class/System.ServiceModel | |
parent | c872e0a100fe2474b0f5ff7993940b66493fe7a9 (diff) |
[runtime] Move testing dll into profile
Diffstat (limited to 'mcs/class/System.ServiceModel')
-rw-r--r-- | mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs b/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs index be7bdb27bd4..fb0e2b3609e 100644 --- a/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs +++ b/mcs/class/System.ServiceModel/Test/MetadataTests/TestContext.cs @@ -138,7 +138,10 @@ namespace MonoTests.System.ServiceModel.MetadataTests { if (!name.EndsWith (".xml")) name = name + ".xml"; var uri = new Uri (asm.CodeBase); + // Run from mcs/class/lib/<profile> var path = Path.GetDirectoryName (uri.AbsolutePath); + path = Directory.GetParent (path).Parent.FullName; + path = Path.Combine (path, "System.ServiceModel"); path = Path.Combine (path, "Test"); path = Path.Combine (path, "MetadataTests"); path = Path.Combine (path, "Resources"); @@ -172,6 +175,8 @@ namespace MonoTests.System.ServiceModel.MetadataTests { name = name + ".config"; var uri = new Uri (asm.CodeBase); var path = Path.GetDirectoryName (uri.AbsolutePath); + path = Directory.GetParent (path).Parent.FullName; + path = Path.Combine (path, "System.ServiceModel"); path = Path.Combine (path, "Test"); path = Path.Combine (path, "MetadataTests"); path = Path.Combine (path, "Resources"); |