From f38d5bf8166f9adfe49269c27245dc8fb3f4bf16 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 5 Mar 2018 23:18:20 +0100 Subject: [PATCH] [xharness] All variants of GuiUnit projects must be special-cased. (#3602) (#3662) This fixes an issue where multiple copies of the GuiUnit project would have the same output directory, causing random problems when building those projects in parallel. --- tests/xharness/TestProject.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/xharness/TestProject.cs b/tests/xharness/TestProject.cs index d8e6fe280038..0e18547221fc 100644 --- a/tests/xharness/TestProject.cs +++ b/tests/xharness/TestProject.cs @@ -112,7 +112,8 @@ internal async Task CreateCopyAsync (TestTask test = null) XmlDocument doc; doc = new XmlDocument (); doc.LoadWithoutNetworkAccess (original_path); - if (System.IO.Path.GetFileName (original_path).Contains ("GuiUnit_NET")) { + var original_name = System.IO.Path.GetFileName (original_path); + if (original_name.Contains ("GuiUnit_NET") || original_name.Contains ("GuiUnit_xammac_mobile")) { // The GuiUnit project files writes stuff outside their project directory using relative paths, // but override that so that we don't end up with multiple cloned projects writing stuff to // the same location.