Skip to content

Commit

Permalink
[xharness] All variants of GuiUnit projects must be special-cased. (x…
Browse files Browse the repository at this point in the history
…amarin#3602) (xamarin#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.
  • Loading branch information
rolfbjarne authored and spouliot committed Mar 5, 2018
1 parent 89b10f3 commit f38d5bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/xharness/TestProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f38d5bf

Please sign in to comment.