[mono/monodevelop] cbc0c989: [nunit] Call Path.GetFullPath only on dll and exe files
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141dd42f141-77febb95-e789-48a6-b74b-e45f45d3a48e-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/424ce28020c3...cbc0c989dfa2
Commit: cbc0c989dfa280fd5ba9c7696c28fec924c70ee6
Author: Alan McGovern <[email protected]> (alanmcgovern)
Date: 2013-10-21 23:02:56 GMT
URL: https://github.com/mono/monodevelop/commit/cbc0c989dfa280fd5ba9c7696c28fec924c70ee6
[nunit] Call Path.GetFullPath only on dll and exe files
We don't want to call this on all the parameters we pass to
the test runner, like -port=12345 or -xml=somefile.xml
Changed paths:
M main/tests/TestRunner/Runner.cs
Modified: main/tests/TestRunner/Runner.cs
===================================================================
@@ -38,16 +38,16 @@ public class Runer: IApplication
{
public int Run (string[] arguments)
{
- var args = new List<string> (arguments.Select (argument => Path.GetFullPath (argument)));
+ var args = new List<string> (arguments);
bool useGuiUnit = false;
foreach (var ar in args) {
if ((ar.EndsWith (".dll") || ar.EndsWith (".exe")) && File.Exists (ar)) {
try {
- var asm = Assembly.LoadFrom (ar);
+ var asm = Assembly.LoadFrom (Path.GetFullPath (ar));
HashSet<string> ids = new HashSet<string> ();
foreach (var aname in asm.GetReferencedAssemblies ()) {
if (aname.Name == "GuiUnit") {
- Assembly.LoadFile (Path.Combine (Path.GetDirectoryName (ar), "GuiUnit.exe"));
+ Assembly.LoadFile (Path.Combine (Path.GetDirectoryName (Path.GetFullPath (ar)), "GuiUnit.exe"));
useGuiUnit = true;
}
ids.UnionWith (GetAddinsFromReferences (aname));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches